1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package v1alpha1
26
27 import (
28 k8sv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1"
29 runtime "k8s.io/apimachinery/pkg/runtime"
30 )
31
32
33 func (in *CloudIOTDevice) DeepCopyInto(out *CloudIOTDevice) {
34 *out = *in
35 out.TypeMeta = in.TypeMeta
36 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
37 in.Spec.DeepCopyInto(&out.Spec)
38 in.Status.DeepCopyInto(&out.Status)
39 return
40 }
41
42
43 func (in *CloudIOTDevice) DeepCopy() *CloudIOTDevice {
44 if in == nil {
45 return nil
46 }
47 out := new(CloudIOTDevice)
48 in.DeepCopyInto(out)
49 return out
50 }
51
52
53 func (in *CloudIOTDevice) DeepCopyObject() runtime.Object {
54 if c := in.DeepCopy(); c != nil {
55 return c
56 }
57 return nil
58 }
59
60
61 func (in *CloudIOTDeviceList) DeepCopyInto(out *CloudIOTDeviceList) {
62 *out = *in
63 out.TypeMeta = in.TypeMeta
64 in.ListMeta.DeepCopyInto(&out.ListMeta)
65 if in.Items != nil {
66 in, out := &in.Items, &out.Items
67 *out = make([]CloudIOTDevice, len(*in))
68 for i := range *in {
69 (*in)[i].DeepCopyInto(&(*out)[i])
70 }
71 }
72 return
73 }
74
75
76 func (in *CloudIOTDeviceList) DeepCopy() *CloudIOTDeviceList {
77 if in == nil {
78 return nil
79 }
80 out := new(CloudIOTDeviceList)
81 in.DeepCopyInto(out)
82 return out
83 }
84
85
86 func (in *CloudIOTDeviceList) DeepCopyObject() runtime.Object {
87 if c := in.DeepCopy(); c != nil {
88 return c
89 }
90 return nil
91 }
92
93
94 func (in *CloudIOTDeviceSpec) DeepCopyInto(out *CloudIOTDeviceSpec) {
95 *out = *in
96 if in.Blocked != nil {
97 in, out := &in.Blocked, &out.Blocked
98 *out = new(bool)
99 **out = **in
100 }
101 if in.Credentials != nil {
102 in, out := &in.Credentials, &out.Credentials
103 *out = make([]DeviceCredentials, len(*in))
104 for i := range *in {
105 (*in)[i].DeepCopyInto(&(*out)[i])
106 }
107 }
108 if in.GatewayConfig != nil {
109 in, out := &in.GatewayConfig, &out.GatewayConfig
110 *out = new(DeviceGatewayConfig)
111 (*in).DeepCopyInto(*out)
112 }
113 if in.LogLevel != nil {
114 in, out := &in.LogLevel, &out.LogLevel
115 *out = new(string)
116 **out = **in
117 }
118 if in.Metadata != nil {
119 in, out := &in.Metadata, &out.Metadata
120 *out = make(map[string]string, len(*in))
121 for key, val := range *in {
122 (*out)[key] = val
123 }
124 }
125 if in.ResourceID != nil {
126 in, out := &in.ResourceID, &out.ResourceID
127 *out = new(string)
128 **out = **in
129 }
130 return
131 }
132
133
134 func (in *CloudIOTDeviceSpec) DeepCopy() *CloudIOTDeviceSpec {
135 if in == nil {
136 return nil
137 }
138 out := new(CloudIOTDeviceSpec)
139 in.DeepCopyInto(out)
140 return out
141 }
142
143
144 func (in *CloudIOTDeviceStatus) DeepCopyInto(out *CloudIOTDeviceStatus) {
145 *out = *in
146 if in.Conditions != nil {
147 in, out := &in.Conditions, &out.Conditions
148 *out = make([]k8sv1alpha1.Condition, len(*in))
149 copy(*out, *in)
150 }
151 if in.Config != nil {
152 in, out := &in.Config, &out.Config
153 *out = make([]DeviceConfigStatus, len(*in))
154 for i := range *in {
155 (*in)[i].DeepCopyInto(&(*out)[i])
156 }
157 }
158 if in.LastConfigAckTime != nil {
159 in, out := &in.LastConfigAckTime, &out.LastConfigAckTime
160 *out = new(string)
161 **out = **in
162 }
163 if in.LastConfigSendTime != nil {
164 in, out := &in.LastConfigSendTime, &out.LastConfigSendTime
165 *out = new(string)
166 **out = **in
167 }
168 if in.LastErrorStatus != nil {
169 in, out := &in.LastErrorStatus, &out.LastErrorStatus
170 *out = make([]DeviceLastErrorStatusStatus, len(*in))
171 for i := range *in {
172 (*in)[i].DeepCopyInto(&(*out)[i])
173 }
174 }
175 if in.LastErrorTime != nil {
176 in, out := &in.LastErrorTime, &out.LastErrorTime
177 *out = new(string)
178 **out = **in
179 }
180 if in.LastEventTime != nil {
181 in, out := &in.LastEventTime, &out.LastEventTime
182 *out = new(string)
183 **out = **in
184 }
185 if in.LastHeartbeatTime != nil {
186 in, out := &in.LastHeartbeatTime, &out.LastHeartbeatTime
187 *out = new(string)
188 **out = **in
189 }
190 if in.LastStateTime != nil {
191 in, out := &in.LastStateTime, &out.LastStateTime
192 *out = new(string)
193 **out = **in
194 }
195 if in.NumId != nil {
196 in, out := &in.NumId, &out.NumId
197 *out = new(string)
198 **out = **in
199 }
200 if in.ObservedGeneration != nil {
201 in, out := &in.ObservedGeneration, &out.ObservedGeneration
202 *out = new(int)
203 **out = **in
204 }
205 if in.State != nil {
206 in, out := &in.State, &out.State
207 *out = make([]DeviceStateStatus, len(*in))
208 for i := range *in {
209 (*in)[i].DeepCopyInto(&(*out)[i])
210 }
211 }
212 return
213 }
214
215
216 func (in *CloudIOTDeviceStatus) DeepCopy() *CloudIOTDeviceStatus {
217 if in == nil {
218 return nil
219 }
220 out := new(CloudIOTDeviceStatus)
221 in.DeepCopyInto(out)
222 return out
223 }
224
225
226 func (in *DeviceConfigStatus) DeepCopyInto(out *DeviceConfigStatus) {
227 *out = *in
228 if in.BinaryData != nil {
229 in, out := &in.BinaryData, &out.BinaryData
230 *out = new(string)
231 **out = **in
232 }
233 if in.CloudUpdateTime != nil {
234 in, out := &in.CloudUpdateTime, &out.CloudUpdateTime
235 *out = new(string)
236 **out = **in
237 }
238 if in.DeviceAckTime != nil {
239 in, out := &in.DeviceAckTime, &out.DeviceAckTime
240 *out = new(string)
241 **out = **in
242 }
243 if in.Version != nil {
244 in, out := &in.Version, &out.Version
245 *out = new(string)
246 **out = **in
247 }
248 return
249 }
250
251
252 func (in *DeviceConfigStatus) DeepCopy() *DeviceConfigStatus {
253 if in == nil {
254 return nil
255 }
256 out := new(DeviceConfigStatus)
257 in.DeepCopyInto(out)
258 return out
259 }
260
261
262 func (in *DeviceCredentials) DeepCopyInto(out *DeviceCredentials) {
263 *out = *in
264 if in.ExpirationTime != nil {
265 in, out := &in.ExpirationTime, &out.ExpirationTime
266 *out = new(string)
267 **out = **in
268 }
269 out.PublicKey = in.PublicKey
270 return
271 }
272
273
274 func (in *DeviceCredentials) DeepCopy() *DeviceCredentials {
275 if in == nil {
276 return nil
277 }
278 out := new(DeviceCredentials)
279 in.DeepCopyInto(out)
280 return out
281 }
282
283
284 func (in *DeviceDetailsStatus) DeepCopyInto(out *DeviceDetailsStatus) {
285 *out = *in
286 return
287 }
288
289
290 func (in *DeviceDetailsStatus) DeepCopy() *DeviceDetailsStatus {
291 if in == nil {
292 return nil
293 }
294 out := new(DeviceDetailsStatus)
295 in.DeepCopyInto(out)
296 return out
297 }
298
299
300 func (in *DeviceGatewayConfig) DeepCopyInto(out *DeviceGatewayConfig) {
301 *out = *in
302 if in.GatewayAuthMethod != nil {
303 in, out := &in.GatewayAuthMethod, &out.GatewayAuthMethod
304 *out = new(string)
305 **out = **in
306 }
307 if in.GatewayType != nil {
308 in, out := &in.GatewayType, &out.GatewayType
309 *out = new(string)
310 **out = **in
311 }
312 if in.LastAccessedGatewayId != nil {
313 in, out := &in.LastAccessedGatewayId, &out.LastAccessedGatewayId
314 *out = new(string)
315 **out = **in
316 }
317 if in.LastAccessedGatewayTime != nil {
318 in, out := &in.LastAccessedGatewayTime, &out.LastAccessedGatewayTime
319 *out = new(string)
320 **out = **in
321 }
322 return
323 }
324
325
326 func (in *DeviceGatewayConfig) DeepCopy() *DeviceGatewayConfig {
327 if in == nil {
328 return nil
329 }
330 out := new(DeviceGatewayConfig)
331 in.DeepCopyInto(out)
332 return out
333 }
334
335
336 func (in *DeviceLastErrorStatusStatus) DeepCopyInto(out *DeviceLastErrorStatusStatus) {
337 *out = *in
338 if in.Details != nil {
339 in, out := &in.Details, &out.Details
340 *out = make([]DeviceDetailsStatus, len(*in))
341 copy(*out, *in)
342 }
343 if in.Message != nil {
344 in, out := &in.Message, &out.Message
345 *out = new(string)
346 **out = **in
347 }
348 if in.Number != nil {
349 in, out := &in.Number, &out.Number
350 *out = new(int)
351 **out = **in
352 }
353 return
354 }
355
356
357 func (in *DeviceLastErrorStatusStatus) DeepCopy() *DeviceLastErrorStatusStatus {
358 if in == nil {
359 return nil
360 }
361 out := new(DeviceLastErrorStatusStatus)
362 in.DeepCopyInto(out)
363 return out
364 }
365
366
367 func (in *DevicePublicKey) DeepCopyInto(out *DevicePublicKey) {
368 *out = *in
369 return
370 }
371
372
373 func (in *DevicePublicKey) DeepCopy() *DevicePublicKey {
374 if in == nil {
375 return nil
376 }
377 out := new(DevicePublicKey)
378 in.DeepCopyInto(out)
379 return out
380 }
381
382
383 func (in *DeviceStateStatus) DeepCopyInto(out *DeviceStateStatus) {
384 *out = *in
385 if in.BinaryData != nil {
386 in, out := &in.BinaryData, &out.BinaryData
387 *out = new(string)
388 **out = **in
389 }
390 if in.UpdateTime != nil {
391 in, out := &in.UpdateTime, &out.UpdateTime
392 *out = new(string)
393 **out = **in
394 }
395 return
396 }
397
398
399 func (in *DeviceStateStatus) DeepCopy() *DeviceStateStatus {
400 if in == nil {
401 return nil
402 }
403 out := new(DeviceStateStatus)
404 in.DeepCopyInto(out)
405 return out
406 }
407
View as plain text