zz_generated.deepcopy.go 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257
  1. //go:build !ignore_autogenerated
  2. // +build !ignore_autogenerated
  3. /*
  4. Copyright The Kubernetes Authors.
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. */
  15. // Code generated by deepcopy-gen. DO NOT EDIT.
  16. package v1beta2
  17. import (
  18. corev1 "k8s.io/api/core/v1"
  19. resource "k8s.io/apimachinery/pkg/api/resource"
  20. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  21. runtime "k8s.io/apimachinery/pkg/runtime"
  22. types "k8s.io/apimachinery/pkg/types"
  23. )
  24. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  25. func (in *AllocatedDeviceStatus) DeepCopyInto(out *AllocatedDeviceStatus) {
  26. *out = *in
  27. if in.ShareID != nil {
  28. in, out := &in.ShareID, &out.ShareID
  29. *out = new(string)
  30. **out = **in
  31. }
  32. if in.Conditions != nil {
  33. in, out := &in.Conditions, &out.Conditions
  34. *out = make([]v1.Condition, len(*in))
  35. for i := range *in {
  36. (*in)[i].DeepCopyInto(&(*out)[i])
  37. }
  38. }
  39. if in.Data != nil {
  40. in, out := &in.Data, &out.Data
  41. *out = new(runtime.RawExtension)
  42. (*in).DeepCopyInto(*out)
  43. }
  44. if in.NetworkData != nil {
  45. in, out := &in.NetworkData, &out.NetworkData
  46. *out = new(NetworkDeviceData)
  47. (*in).DeepCopyInto(*out)
  48. }
  49. return
  50. }
  51. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocatedDeviceStatus.
  52. func (in *AllocatedDeviceStatus) DeepCopy() *AllocatedDeviceStatus {
  53. if in == nil {
  54. return nil
  55. }
  56. out := new(AllocatedDeviceStatus)
  57. in.DeepCopyInto(out)
  58. return out
  59. }
  60. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  61. func (in *AllocationResult) DeepCopyInto(out *AllocationResult) {
  62. *out = *in
  63. in.Devices.DeepCopyInto(&out.Devices)
  64. if in.NodeSelector != nil {
  65. in, out := &in.NodeSelector, &out.NodeSelector
  66. *out = new(corev1.NodeSelector)
  67. (*in).DeepCopyInto(*out)
  68. }
  69. if in.AllocationTimestamp != nil {
  70. in, out := &in.AllocationTimestamp, &out.AllocationTimestamp
  71. *out = (*in).DeepCopy()
  72. }
  73. return
  74. }
  75. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult.
  76. func (in *AllocationResult) DeepCopy() *AllocationResult {
  77. if in == nil {
  78. return nil
  79. }
  80. out := new(AllocationResult)
  81. in.DeepCopyInto(out)
  82. return out
  83. }
  84. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  85. func (in *CELDeviceSelector) DeepCopyInto(out *CELDeviceSelector) {
  86. *out = *in
  87. return
  88. }
  89. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CELDeviceSelector.
  90. func (in *CELDeviceSelector) DeepCopy() *CELDeviceSelector {
  91. if in == nil {
  92. return nil
  93. }
  94. out := new(CELDeviceSelector)
  95. in.DeepCopyInto(out)
  96. return out
  97. }
  98. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  99. func (in *CapacityRequestPolicy) DeepCopyInto(out *CapacityRequestPolicy) {
  100. *out = *in
  101. if in.Default != nil {
  102. in, out := &in.Default, &out.Default
  103. x := (*in).DeepCopy()
  104. *out = &x
  105. }
  106. if in.ValidValues != nil {
  107. in, out := &in.ValidValues, &out.ValidValues
  108. *out = make([]resource.Quantity, len(*in))
  109. for i := range *in {
  110. (*in)[i].DeepCopyInto(&(*out)[i])
  111. }
  112. }
  113. if in.ValidRange != nil {
  114. in, out := &in.ValidRange, &out.ValidRange
  115. *out = new(CapacityRequestPolicyRange)
  116. (*in).DeepCopyInto(*out)
  117. }
  118. return
  119. }
  120. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequestPolicy.
  121. func (in *CapacityRequestPolicy) DeepCopy() *CapacityRequestPolicy {
  122. if in == nil {
  123. return nil
  124. }
  125. out := new(CapacityRequestPolicy)
  126. in.DeepCopyInto(out)
  127. return out
  128. }
  129. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  130. func (in *CapacityRequestPolicyRange) DeepCopyInto(out *CapacityRequestPolicyRange) {
  131. *out = *in
  132. if in.Min != nil {
  133. in, out := &in.Min, &out.Min
  134. x := (*in).DeepCopy()
  135. *out = &x
  136. }
  137. if in.Max != nil {
  138. in, out := &in.Max, &out.Max
  139. x := (*in).DeepCopy()
  140. *out = &x
  141. }
  142. if in.Step != nil {
  143. in, out := &in.Step, &out.Step
  144. x := (*in).DeepCopy()
  145. *out = &x
  146. }
  147. return
  148. }
  149. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequestPolicyRange.
  150. func (in *CapacityRequestPolicyRange) DeepCopy() *CapacityRequestPolicyRange {
  151. if in == nil {
  152. return nil
  153. }
  154. out := new(CapacityRequestPolicyRange)
  155. in.DeepCopyInto(out)
  156. return out
  157. }
  158. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  159. func (in *CapacityRequirements) DeepCopyInto(out *CapacityRequirements) {
  160. *out = *in
  161. if in.Requests != nil {
  162. in, out := &in.Requests, &out.Requests
  163. *out = make(map[QualifiedName]resource.Quantity, len(*in))
  164. for key, val := range *in {
  165. (*out)[key] = val.DeepCopy()
  166. }
  167. }
  168. return
  169. }
  170. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequirements.
  171. func (in *CapacityRequirements) DeepCopy() *CapacityRequirements {
  172. if in == nil {
  173. return nil
  174. }
  175. out := new(CapacityRequirements)
  176. in.DeepCopyInto(out)
  177. return out
  178. }
  179. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  180. func (in *Counter) DeepCopyInto(out *Counter) {
  181. *out = *in
  182. out.Value = in.Value.DeepCopy()
  183. return
  184. }
  185. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Counter.
  186. func (in *Counter) DeepCopy() *Counter {
  187. if in == nil {
  188. return nil
  189. }
  190. out := new(Counter)
  191. in.DeepCopyInto(out)
  192. return out
  193. }
  194. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  195. func (in *CounterSet) DeepCopyInto(out *CounterSet) {
  196. *out = *in
  197. if in.Counters != nil {
  198. in, out := &in.Counters, &out.Counters
  199. *out = make(map[string]Counter, len(*in))
  200. for key, val := range *in {
  201. (*out)[key] = *val.DeepCopy()
  202. }
  203. }
  204. return
  205. }
  206. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CounterSet.
  207. func (in *CounterSet) DeepCopy() *CounterSet {
  208. if in == nil {
  209. return nil
  210. }
  211. out := new(CounterSet)
  212. in.DeepCopyInto(out)
  213. return out
  214. }
  215. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  216. func (in *Device) DeepCopyInto(out *Device) {
  217. *out = *in
  218. if in.Attributes != nil {
  219. in, out := &in.Attributes, &out.Attributes
  220. *out = make(map[QualifiedName]DeviceAttribute, len(*in))
  221. for key, val := range *in {
  222. (*out)[key] = *val.DeepCopy()
  223. }
  224. }
  225. if in.Capacity != nil {
  226. in, out := &in.Capacity, &out.Capacity
  227. *out = make(map[QualifiedName]DeviceCapacity, len(*in))
  228. for key, val := range *in {
  229. (*out)[key] = *val.DeepCopy()
  230. }
  231. }
  232. if in.ConsumesCounters != nil {
  233. in, out := &in.ConsumesCounters, &out.ConsumesCounters
  234. *out = make([]DeviceCounterConsumption, len(*in))
  235. for i := range *in {
  236. (*in)[i].DeepCopyInto(&(*out)[i])
  237. }
  238. }
  239. if in.NodeName != nil {
  240. in, out := &in.NodeName, &out.NodeName
  241. *out = new(string)
  242. **out = **in
  243. }
  244. if in.NodeSelector != nil {
  245. in, out := &in.NodeSelector, &out.NodeSelector
  246. *out = new(corev1.NodeSelector)
  247. (*in).DeepCopyInto(*out)
  248. }
  249. if in.AllNodes != nil {
  250. in, out := &in.AllNodes, &out.AllNodes
  251. *out = new(bool)
  252. **out = **in
  253. }
  254. if in.Taints != nil {
  255. in, out := &in.Taints, &out.Taints
  256. *out = make([]DeviceTaint, len(*in))
  257. for i := range *in {
  258. (*in)[i].DeepCopyInto(&(*out)[i])
  259. }
  260. }
  261. if in.BindsToNode != nil {
  262. in, out := &in.BindsToNode, &out.BindsToNode
  263. *out = new(bool)
  264. **out = **in
  265. }
  266. if in.BindingConditions != nil {
  267. in, out := &in.BindingConditions, &out.BindingConditions
  268. *out = make([]string, len(*in))
  269. copy(*out, *in)
  270. }
  271. if in.BindingFailureConditions != nil {
  272. in, out := &in.BindingFailureConditions, &out.BindingFailureConditions
  273. *out = make([]string, len(*in))
  274. copy(*out, *in)
  275. }
  276. if in.AllowMultipleAllocations != nil {
  277. in, out := &in.AllowMultipleAllocations, &out.AllowMultipleAllocations
  278. *out = new(bool)
  279. **out = **in
  280. }
  281. return
  282. }
  283. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Device.
  284. func (in *Device) DeepCopy() *Device {
  285. if in == nil {
  286. return nil
  287. }
  288. out := new(Device)
  289. in.DeepCopyInto(out)
  290. return out
  291. }
  292. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  293. func (in *DeviceAllocationConfiguration) DeepCopyInto(out *DeviceAllocationConfiguration) {
  294. *out = *in
  295. if in.Requests != nil {
  296. in, out := &in.Requests, &out.Requests
  297. *out = make([]string, len(*in))
  298. copy(*out, *in)
  299. }
  300. in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
  301. return
  302. }
  303. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationConfiguration.
  304. func (in *DeviceAllocationConfiguration) DeepCopy() *DeviceAllocationConfiguration {
  305. if in == nil {
  306. return nil
  307. }
  308. out := new(DeviceAllocationConfiguration)
  309. in.DeepCopyInto(out)
  310. return out
  311. }
  312. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  313. func (in *DeviceAllocationResult) DeepCopyInto(out *DeviceAllocationResult) {
  314. *out = *in
  315. if in.Results != nil {
  316. in, out := &in.Results, &out.Results
  317. *out = make([]DeviceRequestAllocationResult, len(*in))
  318. for i := range *in {
  319. (*in)[i].DeepCopyInto(&(*out)[i])
  320. }
  321. }
  322. if in.Config != nil {
  323. in, out := &in.Config, &out.Config
  324. *out = make([]DeviceAllocationConfiguration, len(*in))
  325. for i := range *in {
  326. (*in)[i].DeepCopyInto(&(*out)[i])
  327. }
  328. }
  329. return
  330. }
  331. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationResult.
  332. func (in *DeviceAllocationResult) DeepCopy() *DeviceAllocationResult {
  333. if in == nil {
  334. return nil
  335. }
  336. out := new(DeviceAllocationResult)
  337. in.DeepCopyInto(out)
  338. return out
  339. }
  340. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  341. func (in *DeviceAttribute) DeepCopyInto(out *DeviceAttribute) {
  342. *out = *in
  343. if in.IntValue != nil {
  344. in, out := &in.IntValue, &out.IntValue
  345. *out = new(int64)
  346. **out = **in
  347. }
  348. if in.BoolValue != nil {
  349. in, out := &in.BoolValue, &out.BoolValue
  350. *out = new(bool)
  351. **out = **in
  352. }
  353. if in.StringValue != nil {
  354. in, out := &in.StringValue, &out.StringValue
  355. *out = new(string)
  356. **out = **in
  357. }
  358. if in.VersionValue != nil {
  359. in, out := &in.VersionValue, &out.VersionValue
  360. *out = new(string)
  361. **out = **in
  362. }
  363. return
  364. }
  365. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAttribute.
  366. func (in *DeviceAttribute) DeepCopy() *DeviceAttribute {
  367. if in == nil {
  368. return nil
  369. }
  370. out := new(DeviceAttribute)
  371. in.DeepCopyInto(out)
  372. return out
  373. }
  374. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  375. func (in *DeviceCapacity) DeepCopyInto(out *DeviceCapacity) {
  376. *out = *in
  377. out.Value = in.Value.DeepCopy()
  378. if in.RequestPolicy != nil {
  379. in, out := &in.RequestPolicy, &out.RequestPolicy
  380. *out = new(CapacityRequestPolicy)
  381. (*in).DeepCopyInto(*out)
  382. }
  383. return
  384. }
  385. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCapacity.
  386. func (in *DeviceCapacity) DeepCopy() *DeviceCapacity {
  387. if in == nil {
  388. return nil
  389. }
  390. out := new(DeviceCapacity)
  391. in.DeepCopyInto(out)
  392. return out
  393. }
  394. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  395. func (in *DeviceClaim) DeepCopyInto(out *DeviceClaim) {
  396. *out = *in
  397. if in.Requests != nil {
  398. in, out := &in.Requests, &out.Requests
  399. *out = make([]DeviceRequest, len(*in))
  400. for i := range *in {
  401. (*in)[i].DeepCopyInto(&(*out)[i])
  402. }
  403. }
  404. if in.Constraints != nil {
  405. in, out := &in.Constraints, &out.Constraints
  406. *out = make([]DeviceConstraint, len(*in))
  407. for i := range *in {
  408. (*in)[i].DeepCopyInto(&(*out)[i])
  409. }
  410. }
  411. if in.Config != nil {
  412. in, out := &in.Config, &out.Config
  413. *out = make([]DeviceClaimConfiguration, len(*in))
  414. for i := range *in {
  415. (*in)[i].DeepCopyInto(&(*out)[i])
  416. }
  417. }
  418. return
  419. }
  420. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaim.
  421. func (in *DeviceClaim) DeepCopy() *DeviceClaim {
  422. if in == nil {
  423. return nil
  424. }
  425. out := new(DeviceClaim)
  426. in.DeepCopyInto(out)
  427. return out
  428. }
  429. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  430. func (in *DeviceClaimConfiguration) DeepCopyInto(out *DeviceClaimConfiguration) {
  431. *out = *in
  432. if in.Requests != nil {
  433. in, out := &in.Requests, &out.Requests
  434. *out = make([]string, len(*in))
  435. copy(*out, *in)
  436. }
  437. in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
  438. return
  439. }
  440. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaimConfiguration.
  441. func (in *DeviceClaimConfiguration) DeepCopy() *DeviceClaimConfiguration {
  442. if in == nil {
  443. return nil
  444. }
  445. out := new(DeviceClaimConfiguration)
  446. in.DeepCopyInto(out)
  447. return out
  448. }
  449. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  450. func (in *DeviceClass) DeepCopyInto(out *DeviceClass) {
  451. *out = *in
  452. out.TypeMeta = in.TypeMeta
  453. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  454. in.Spec.DeepCopyInto(&out.Spec)
  455. return
  456. }
  457. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClass.
  458. func (in *DeviceClass) DeepCopy() *DeviceClass {
  459. if in == nil {
  460. return nil
  461. }
  462. out := new(DeviceClass)
  463. in.DeepCopyInto(out)
  464. return out
  465. }
  466. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  467. func (in *DeviceClass) DeepCopyObject() runtime.Object {
  468. if c := in.DeepCopy(); c != nil {
  469. return c
  470. }
  471. return nil
  472. }
  473. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  474. func (in *DeviceClassConfiguration) DeepCopyInto(out *DeviceClassConfiguration) {
  475. *out = *in
  476. in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
  477. return
  478. }
  479. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassConfiguration.
  480. func (in *DeviceClassConfiguration) DeepCopy() *DeviceClassConfiguration {
  481. if in == nil {
  482. return nil
  483. }
  484. out := new(DeviceClassConfiguration)
  485. in.DeepCopyInto(out)
  486. return out
  487. }
  488. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  489. func (in *DeviceClassList) DeepCopyInto(out *DeviceClassList) {
  490. *out = *in
  491. out.TypeMeta = in.TypeMeta
  492. in.ListMeta.DeepCopyInto(&out.ListMeta)
  493. if in.Items != nil {
  494. in, out := &in.Items, &out.Items
  495. *out = make([]DeviceClass, len(*in))
  496. for i := range *in {
  497. (*in)[i].DeepCopyInto(&(*out)[i])
  498. }
  499. }
  500. return
  501. }
  502. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassList.
  503. func (in *DeviceClassList) DeepCopy() *DeviceClassList {
  504. if in == nil {
  505. return nil
  506. }
  507. out := new(DeviceClassList)
  508. in.DeepCopyInto(out)
  509. return out
  510. }
  511. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  512. func (in *DeviceClassList) DeepCopyObject() runtime.Object {
  513. if c := in.DeepCopy(); c != nil {
  514. return c
  515. }
  516. return nil
  517. }
  518. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  519. func (in *DeviceClassSpec) DeepCopyInto(out *DeviceClassSpec) {
  520. *out = *in
  521. if in.Selectors != nil {
  522. in, out := &in.Selectors, &out.Selectors
  523. *out = make([]DeviceSelector, len(*in))
  524. for i := range *in {
  525. (*in)[i].DeepCopyInto(&(*out)[i])
  526. }
  527. }
  528. if in.Config != nil {
  529. in, out := &in.Config, &out.Config
  530. *out = make([]DeviceClassConfiguration, len(*in))
  531. for i := range *in {
  532. (*in)[i].DeepCopyInto(&(*out)[i])
  533. }
  534. }
  535. if in.ExtendedResourceName != nil {
  536. in, out := &in.ExtendedResourceName, &out.ExtendedResourceName
  537. *out = new(string)
  538. **out = **in
  539. }
  540. return
  541. }
  542. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassSpec.
  543. func (in *DeviceClassSpec) DeepCopy() *DeviceClassSpec {
  544. if in == nil {
  545. return nil
  546. }
  547. out := new(DeviceClassSpec)
  548. in.DeepCopyInto(out)
  549. return out
  550. }
  551. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  552. func (in *DeviceConfiguration) DeepCopyInto(out *DeviceConfiguration) {
  553. *out = *in
  554. if in.Opaque != nil {
  555. in, out := &in.Opaque, &out.Opaque
  556. *out = new(OpaqueDeviceConfiguration)
  557. (*in).DeepCopyInto(*out)
  558. }
  559. return
  560. }
  561. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConfiguration.
  562. func (in *DeviceConfiguration) DeepCopy() *DeviceConfiguration {
  563. if in == nil {
  564. return nil
  565. }
  566. out := new(DeviceConfiguration)
  567. in.DeepCopyInto(out)
  568. return out
  569. }
  570. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  571. func (in *DeviceConstraint) DeepCopyInto(out *DeviceConstraint) {
  572. *out = *in
  573. if in.Requests != nil {
  574. in, out := &in.Requests, &out.Requests
  575. *out = make([]string, len(*in))
  576. copy(*out, *in)
  577. }
  578. if in.MatchAttribute != nil {
  579. in, out := &in.MatchAttribute, &out.MatchAttribute
  580. *out = new(FullyQualifiedName)
  581. **out = **in
  582. }
  583. if in.DistinctAttribute != nil {
  584. in, out := &in.DistinctAttribute, &out.DistinctAttribute
  585. *out = new(FullyQualifiedName)
  586. **out = **in
  587. }
  588. return
  589. }
  590. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConstraint.
  591. func (in *DeviceConstraint) DeepCopy() *DeviceConstraint {
  592. if in == nil {
  593. return nil
  594. }
  595. out := new(DeviceConstraint)
  596. in.DeepCopyInto(out)
  597. return out
  598. }
  599. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  600. func (in *DeviceCounterConsumption) DeepCopyInto(out *DeviceCounterConsumption) {
  601. *out = *in
  602. if in.Counters != nil {
  603. in, out := &in.Counters, &out.Counters
  604. *out = make(map[string]Counter, len(*in))
  605. for key, val := range *in {
  606. (*out)[key] = *val.DeepCopy()
  607. }
  608. }
  609. return
  610. }
  611. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCounterConsumption.
  612. func (in *DeviceCounterConsumption) DeepCopy() *DeviceCounterConsumption {
  613. if in == nil {
  614. return nil
  615. }
  616. out := new(DeviceCounterConsumption)
  617. in.DeepCopyInto(out)
  618. return out
  619. }
  620. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  621. func (in *DeviceRequest) DeepCopyInto(out *DeviceRequest) {
  622. *out = *in
  623. if in.Exactly != nil {
  624. in, out := &in.Exactly, &out.Exactly
  625. *out = new(ExactDeviceRequest)
  626. (*in).DeepCopyInto(*out)
  627. }
  628. if in.FirstAvailable != nil {
  629. in, out := &in.FirstAvailable, &out.FirstAvailable
  630. *out = make([]DeviceSubRequest, len(*in))
  631. for i := range *in {
  632. (*in)[i].DeepCopyInto(&(*out)[i])
  633. }
  634. }
  635. return
  636. }
  637. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequest.
  638. func (in *DeviceRequest) DeepCopy() *DeviceRequest {
  639. if in == nil {
  640. return nil
  641. }
  642. out := new(DeviceRequest)
  643. in.DeepCopyInto(out)
  644. return out
  645. }
  646. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  647. func (in *DeviceRequestAllocationResult) DeepCopyInto(out *DeviceRequestAllocationResult) {
  648. *out = *in
  649. if in.AdminAccess != nil {
  650. in, out := &in.AdminAccess, &out.AdminAccess
  651. *out = new(bool)
  652. **out = **in
  653. }
  654. if in.Tolerations != nil {
  655. in, out := &in.Tolerations, &out.Tolerations
  656. *out = make([]DeviceToleration, len(*in))
  657. for i := range *in {
  658. (*in)[i].DeepCopyInto(&(*out)[i])
  659. }
  660. }
  661. if in.BindingConditions != nil {
  662. in, out := &in.BindingConditions, &out.BindingConditions
  663. *out = make([]string, len(*in))
  664. copy(*out, *in)
  665. }
  666. if in.BindingFailureConditions != nil {
  667. in, out := &in.BindingFailureConditions, &out.BindingFailureConditions
  668. *out = make([]string, len(*in))
  669. copy(*out, *in)
  670. }
  671. if in.ShareID != nil {
  672. in, out := &in.ShareID, &out.ShareID
  673. *out = new(types.UID)
  674. **out = **in
  675. }
  676. if in.ConsumedCapacity != nil {
  677. in, out := &in.ConsumedCapacity, &out.ConsumedCapacity
  678. *out = make(map[QualifiedName]resource.Quantity, len(*in))
  679. for key, val := range *in {
  680. (*out)[key] = val.DeepCopy()
  681. }
  682. }
  683. return
  684. }
  685. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequestAllocationResult.
  686. func (in *DeviceRequestAllocationResult) DeepCopy() *DeviceRequestAllocationResult {
  687. if in == nil {
  688. return nil
  689. }
  690. out := new(DeviceRequestAllocationResult)
  691. in.DeepCopyInto(out)
  692. return out
  693. }
  694. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  695. func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector) {
  696. *out = *in
  697. if in.CEL != nil {
  698. in, out := &in.CEL, &out.CEL
  699. *out = new(CELDeviceSelector)
  700. **out = **in
  701. }
  702. return
  703. }
  704. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSelector.
  705. func (in *DeviceSelector) DeepCopy() *DeviceSelector {
  706. if in == nil {
  707. return nil
  708. }
  709. out := new(DeviceSelector)
  710. in.DeepCopyInto(out)
  711. return out
  712. }
  713. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  714. func (in *DeviceSubRequest) DeepCopyInto(out *DeviceSubRequest) {
  715. *out = *in
  716. if in.Selectors != nil {
  717. in, out := &in.Selectors, &out.Selectors
  718. *out = make([]DeviceSelector, len(*in))
  719. for i := range *in {
  720. (*in)[i].DeepCopyInto(&(*out)[i])
  721. }
  722. }
  723. if in.Tolerations != nil {
  724. in, out := &in.Tolerations, &out.Tolerations
  725. *out = make([]DeviceToleration, len(*in))
  726. for i := range *in {
  727. (*in)[i].DeepCopyInto(&(*out)[i])
  728. }
  729. }
  730. if in.Capacity != nil {
  731. in, out := &in.Capacity, &out.Capacity
  732. *out = new(CapacityRequirements)
  733. (*in).DeepCopyInto(*out)
  734. }
  735. return
  736. }
  737. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSubRequest.
  738. func (in *DeviceSubRequest) DeepCopy() *DeviceSubRequest {
  739. if in == nil {
  740. return nil
  741. }
  742. out := new(DeviceSubRequest)
  743. in.DeepCopyInto(out)
  744. return out
  745. }
  746. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  747. func (in *DeviceTaint) DeepCopyInto(out *DeviceTaint) {
  748. *out = *in
  749. if in.TimeAdded != nil {
  750. in, out := &in.TimeAdded, &out.TimeAdded
  751. *out = (*in).DeepCopy()
  752. }
  753. return
  754. }
  755. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceTaint.
  756. func (in *DeviceTaint) DeepCopy() *DeviceTaint {
  757. if in == nil {
  758. return nil
  759. }
  760. out := new(DeviceTaint)
  761. in.DeepCopyInto(out)
  762. return out
  763. }
  764. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  765. func (in *DeviceToleration) DeepCopyInto(out *DeviceToleration) {
  766. *out = *in
  767. if in.TolerationSeconds != nil {
  768. in, out := &in.TolerationSeconds, &out.TolerationSeconds
  769. *out = new(int64)
  770. **out = **in
  771. }
  772. return
  773. }
  774. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceToleration.
  775. func (in *DeviceToleration) DeepCopy() *DeviceToleration {
  776. if in == nil {
  777. return nil
  778. }
  779. out := new(DeviceToleration)
  780. in.DeepCopyInto(out)
  781. return out
  782. }
  783. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  784. func (in *ExactDeviceRequest) DeepCopyInto(out *ExactDeviceRequest) {
  785. *out = *in
  786. if in.Selectors != nil {
  787. in, out := &in.Selectors, &out.Selectors
  788. *out = make([]DeviceSelector, len(*in))
  789. for i := range *in {
  790. (*in)[i].DeepCopyInto(&(*out)[i])
  791. }
  792. }
  793. if in.AdminAccess != nil {
  794. in, out := &in.AdminAccess, &out.AdminAccess
  795. *out = new(bool)
  796. **out = **in
  797. }
  798. if in.Tolerations != nil {
  799. in, out := &in.Tolerations, &out.Tolerations
  800. *out = make([]DeviceToleration, len(*in))
  801. for i := range *in {
  802. (*in)[i].DeepCopyInto(&(*out)[i])
  803. }
  804. }
  805. if in.Capacity != nil {
  806. in, out := &in.Capacity, &out.Capacity
  807. *out = new(CapacityRequirements)
  808. (*in).DeepCopyInto(*out)
  809. }
  810. return
  811. }
  812. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExactDeviceRequest.
  813. func (in *ExactDeviceRequest) DeepCopy() *ExactDeviceRequest {
  814. if in == nil {
  815. return nil
  816. }
  817. out := new(ExactDeviceRequest)
  818. in.DeepCopyInto(out)
  819. return out
  820. }
  821. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  822. func (in *NetworkDeviceData) DeepCopyInto(out *NetworkDeviceData) {
  823. *out = *in
  824. if in.IPs != nil {
  825. in, out := &in.IPs, &out.IPs
  826. *out = make([]string, len(*in))
  827. copy(*out, *in)
  828. }
  829. return
  830. }
  831. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkDeviceData.
  832. func (in *NetworkDeviceData) DeepCopy() *NetworkDeviceData {
  833. if in == nil {
  834. return nil
  835. }
  836. out := new(NetworkDeviceData)
  837. in.DeepCopyInto(out)
  838. return out
  839. }
  840. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  841. func (in *OpaqueDeviceConfiguration) DeepCopyInto(out *OpaqueDeviceConfiguration) {
  842. *out = *in
  843. in.Parameters.DeepCopyInto(&out.Parameters)
  844. return
  845. }
  846. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpaqueDeviceConfiguration.
  847. func (in *OpaqueDeviceConfiguration) DeepCopy() *OpaqueDeviceConfiguration {
  848. if in == nil {
  849. return nil
  850. }
  851. out := new(OpaqueDeviceConfiguration)
  852. in.DeepCopyInto(out)
  853. return out
  854. }
  855. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  856. func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim) {
  857. *out = *in
  858. out.TypeMeta = in.TypeMeta
  859. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  860. in.Spec.DeepCopyInto(&out.Spec)
  861. in.Status.DeepCopyInto(&out.Status)
  862. return
  863. }
  864. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim.
  865. func (in *ResourceClaim) DeepCopy() *ResourceClaim {
  866. if in == nil {
  867. return nil
  868. }
  869. out := new(ResourceClaim)
  870. in.DeepCopyInto(out)
  871. return out
  872. }
  873. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  874. func (in *ResourceClaim) DeepCopyObject() runtime.Object {
  875. if c := in.DeepCopy(); c != nil {
  876. return c
  877. }
  878. return nil
  879. }
  880. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  881. func (in *ResourceClaimConsumerReference) DeepCopyInto(out *ResourceClaimConsumerReference) {
  882. *out = *in
  883. return
  884. }
  885. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference.
  886. func (in *ResourceClaimConsumerReference) DeepCopy() *ResourceClaimConsumerReference {
  887. if in == nil {
  888. return nil
  889. }
  890. out := new(ResourceClaimConsumerReference)
  891. in.DeepCopyInto(out)
  892. return out
  893. }
  894. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  895. func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList) {
  896. *out = *in
  897. out.TypeMeta = in.TypeMeta
  898. in.ListMeta.DeepCopyInto(&out.ListMeta)
  899. if in.Items != nil {
  900. in, out := &in.Items, &out.Items
  901. *out = make([]ResourceClaim, len(*in))
  902. for i := range *in {
  903. (*in)[i].DeepCopyInto(&(*out)[i])
  904. }
  905. }
  906. return
  907. }
  908. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList.
  909. func (in *ResourceClaimList) DeepCopy() *ResourceClaimList {
  910. if in == nil {
  911. return nil
  912. }
  913. out := new(ResourceClaimList)
  914. in.DeepCopyInto(out)
  915. return out
  916. }
  917. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  918. func (in *ResourceClaimList) DeepCopyObject() runtime.Object {
  919. if c := in.DeepCopy(); c != nil {
  920. return c
  921. }
  922. return nil
  923. }
  924. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  925. func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
  926. *out = *in
  927. in.Devices.DeepCopyInto(&out.Devices)
  928. return
  929. }
  930. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec.
  931. func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec {
  932. if in == nil {
  933. return nil
  934. }
  935. out := new(ResourceClaimSpec)
  936. in.DeepCopyInto(out)
  937. return out
  938. }
  939. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  940. func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus) {
  941. *out = *in
  942. if in.Allocation != nil {
  943. in, out := &in.Allocation, &out.Allocation
  944. *out = new(AllocationResult)
  945. (*in).DeepCopyInto(*out)
  946. }
  947. if in.ReservedFor != nil {
  948. in, out := &in.ReservedFor, &out.ReservedFor
  949. *out = make([]ResourceClaimConsumerReference, len(*in))
  950. copy(*out, *in)
  951. }
  952. if in.Devices != nil {
  953. in, out := &in.Devices, &out.Devices
  954. *out = make([]AllocatedDeviceStatus, len(*in))
  955. for i := range *in {
  956. (*in)[i].DeepCopyInto(&(*out)[i])
  957. }
  958. }
  959. return
  960. }
  961. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus.
  962. func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus {
  963. if in == nil {
  964. return nil
  965. }
  966. out := new(ResourceClaimStatus)
  967. in.DeepCopyInto(out)
  968. return out
  969. }
  970. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  971. func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate) {
  972. *out = *in
  973. out.TypeMeta = in.TypeMeta
  974. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  975. in.Spec.DeepCopyInto(&out.Spec)
  976. return
  977. }
  978. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplate.
  979. func (in *ResourceClaimTemplate) DeepCopy() *ResourceClaimTemplate {
  980. if in == nil {
  981. return nil
  982. }
  983. out := new(ResourceClaimTemplate)
  984. in.DeepCopyInto(out)
  985. return out
  986. }
  987. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  988. func (in *ResourceClaimTemplate) DeepCopyObject() runtime.Object {
  989. if c := in.DeepCopy(); c != nil {
  990. return c
  991. }
  992. return nil
  993. }
  994. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  995. func (in *ResourceClaimTemplateList) DeepCopyInto(out *ResourceClaimTemplateList) {
  996. *out = *in
  997. out.TypeMeta = in.TypeMeta
  998. in.ListMeta.DeepCopyInto(&out.ListMeta)
  999. if in.Items != nil {
  1000. in, out := &in.Items, &out.Items
  1001. *out = make([]ResourceClaimTemplate, len(*in))
  1002. for i := range *in {
  1003. (*in)[i].DeepCopyInto(&(*out)[i])
  1004. }
  1005. }
  1006. return
  1007. }
  1008. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList.
  1009. func (in *ResourceClaimTemplateList) DeepCopy() *ResourceClaimTemplateList {
  1010. if in == nil {
  1011. return nil
  1012. }
  1013. out := new(ResourceClaimTemplateList)
  1014. in.DeepCopyInto(out)
  1015. return out
  1016. }
  1017. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  1018. func (in *ResourceClaimTemplateList) DeepCopyObject() runtime.Object {
  1019. if c := in.DeepCopy(); c != nil {
  1020. return c
  1021. }
  1022. return nil
  1023. }
  1024. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1025. func (in *ResourceClaimTemplateSpec) DeepCopyInto(out *ResourceClaimTemplateSpec) {
  1026. *out = *in
  1027. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  1028. in.Spec.DeepCopyInto(&out.Spec)
  1029. return
  1030. }
  1031. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateSpec.
  1032. func (in *ResourceClaimTemplateSpec) DeepCopy() *ResourceClaimTemplateSpec {
  1033. if in == nil {
  1034. return nil
  1035. }
  1036. out := new(ResourceClaimTemplateSpec)
  1037. in.DeepCopyInto(out)
  1038. return out
  1039. }
  1040. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1041. func (in *ResourcePool) DeepCopyInto(out *ResourcePool) {
  1042. *out = *in
  1043. return
  1044. }
  1045. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePool.
  1046. func (in *ResourcePool) DeepCopy() *ResourcePool {
  1047. if in == nil {
  1048. return nil
  1049. }
  1050. out := new(ResourcePool)
  1051. in.DeepCopyInto(out)
  1052. return out
  1053. }
  1054. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1055. func (in *ResourceSlice) DeepCopyInto(out *ResourceSlice) {
  1056. *out = *in
  1057. out.TypeMeta = in.TypeMeta
  1058. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  1059. in.Spec.DeepCopyInto(&out.Spec)
  1060. return
  1061. }
  1062. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSlice.
  1063. func (in *ResourceSlice) DeepCopy() *ResourceSlice {
  1064. if in == nil {
  1065. return nil
  1066. }
  1067. out := new(ResourceSlice)
  1068. in.DeepCopyInto(out)
  1069. return out
  1070. }
  1071. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  1072. func (in *ResourceSlice) DeepCopyObject() runtime.Object {
  1073. if c := in.DeepCopy(); c != nil {
  1074. return c
  1075. }
  1076. return nil
  1077. }
  1078. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1079. func (in *ResourceSliceList) DeepCopyInto(out *ResourceSliceList) {
  1080. *out = *in
  1081. out.TypeMeta = in.TypeMeta
  1082. in.ListMeta.DeepCopyInto(&out.ListMeta)
  1083. if in.Items != nil {
  1084. in, out := &in.Items, &out.Items
  1085. *out = make([]ResourceSlice, len(*in))
  1086. for i := range *in {
  1087. (*in)[i].DeepCopyInto(&(*out)[i])
  1088. }
  1089. }
  1090. return
  1091. }
  1092. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceList.
  1093. func (in *ResourceSliceList) DeepCopy() *ResourceSliceList {
  1094. if in == nil {
  1095. return nil
  1096. }
  1097. out := new(ResourceSliceList)
  1098. in.DeepCopyInto(out)
  1099. return out
  1100. }
  1101. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  1102. func (in *ResourceSliceList) DeepCopyObject() runtime.Object {
  1103. if c := in.DeepCopy(); c != nil {
  1104. return c
  1105. }
  1106. return nil
  1107. }
  1108. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  1109. func (in *ResourceSliceSpec) DeepCopyInto(out *ResourceSliceSpec) {
  1110. *out = *in
  1111. out.Pool = in.Pool
  1112. if in.NodeName != nil {
  1113. in, out := &in.NodeName, &out.NodeName
  1114. *out = new(string)
  1115. **out = **in
  1116. }
  1117. if in.NodeSelector != nil {
  1118. in, out := &in.NodeSelector, &out.NodeSelector
  1119. *out = new(corev1.NodeSelector)
  1120. (*in).DeepCopyInto(*out)
  1121. }
  1122. if in.AllNodes != nil {
  1123. in, out := &in.AllNodes, &out.AllNodes
  1124. *out = new(bool)
  1125. **out = **in
  1126. }
  1127. if in.Devices != nil {
  1128. in, out := &in.Devices, &out.Devices
  1129. *out = make([]Device, len(*in))
  1130. for i := range *in {
  1131. (*in)[i].DeepCopyInto(&(*out)[i])
  1132. }
  1133. }
  1134. if in.PerDeviceNodeSelection != nil {
  1135. in, out := &in.PerDeviceNodeSelection, &out.PerDeviceNodeSelection
  1136. *out = new(bool)
  1137. **out = **in
  1138. }
  1139. if in.SharedCounters != nil {
  1140. in, out := &in.SharedCounters, &out.SharedCounters
  1141. *out = make([]CounterSet, len(*in))
  1142. for i := range *in {
  1143. (*in)[i].DeepCopyInto(&(*out)[i])
  1144. }
  1145. }
  1146. return
  1147. }
  1148. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceSpec.
  1149. func (in *ResourceSliceSpec) DeepCopy() *ResourceSliceSpec {
  1150. if in == nil {
  1151. return nil
  1152. }
  1153. out := new(ResourceSliceSpec)
  1154. in.DeepCopyInto(out)
  1155. return out
  1156. }