zz_generated.deepcopy.go 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  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 v1beta1
  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 *BasicDevice) DeepCopyInto(out *BasicDevice) {
  86. *out = *in
  87. if in.Attributes != nil {
  88. in, out := &in.Attributes, &out.Attributes
  89. *out = make(map[QualifiedName]DeviceAttribute, len(*in))
  90. for key, val := range *in {
  91. (*out)[key] = *val.DeepCopy()
  92. }
  93. }
  94. if in.Capacity != nil {
  95. in, out := &in.Capacity, &out.Capacity
  96. *out = make(map[QualifiedName]DeviceCapacity, len(*in))
  97. for key, val := range *in {
  98. (*out)[key] = *val.DeepCopy()
  99. }
  100. }
  101. if in.ConsumesCounters != nil {
  102. in, out := &in.ConsumesCounters, &out.ConsumesCounters
  103. *out = make([]DeviceCounterConsumption, len(*in))
  104. for i := range *in {
  105. (*in)[i].DeepCopyInto(&(*out)[i])
  106. }
  107. }
  108. if in.NodeName != nil {
  109. in, out := &in.NodeName, &out.NodeName
  110. *out = new(string)
  111. **out = **in
  112. }
  113. if in.NodeSelector != nil {
  114. in, out := &in.NodeSelector, &out.NodeSelector
  115. *out = new(corev1.NodeSelector)
  116. (*in).DeepCopyInto(*out)
  117. }
  118. if in.AllNodes != nil {
  119. in, out := &in.AllNodes, &out.AllNodes
  120. *out = new(bool)
  121. **out = **in
  122. }
  123. if in.Taints != nil {
  124. in, out := &in.Taints, &out.Taints
  125. *out = make([]DeviceTaint, len(*in))
  126. for i := range *in {
  127. (*in)[i].DeepCopyInto(&(*out)[i])
  128. }
  129. }
  130. if in.BindsToNode != nil {
  131. in, out := &in.BindsToNode, &out.BindsToNode
  132. *out = new(bool)
  133. **out = **in
  134. }
  135. if in.BindingConditions != nil {
  136. in, out := &in.BindingConditions, &out.BindingConditions
  137. *out = make([]string, len(*in))
  138. copy(*out, *in)
  139. }
  140. if in.BindingFailureConditions != nil {
  141. in, out := &in.BindingFailureConditions, &out.BindingFailureConditions
  142. *out = make([]string, len(*in))
  143. copy(*out, *in)
  144. }
  145. if in.AllowMultipleAllocations != nil {
  146. in, out := &in.AllowMultipleAllocations, &out.AllowMultipleAllocations
  147. *out = new(bool)
  148. **out = **in
  149. }
  150. return
  151. }
  152. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicDevice.
  153. func (in *BasicDevice) DeepCopy() *BasicDevice {
  154. if in == nil {
  155. return nil
  156. }
  157. out := new(BasicDevice)
  158. in.DeepCopyInto(out)
  159. return out
  160. }
  161. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  162. func (in *CELDeviceSelector) DeepCopyInto(out *CELDeviceSelector) {
  163. *out = *in
  164. return
  165. }
  166. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CELDeviceSelector.
  167. func (in *CELDeviceSelector) DeepCopy() *CELDeviceSelector {
  168. if in == nil {
  169. return nil
  170. }
  171. out := new(CELDeviceSelector)
  172. in.DeepCopyInto(out)
  173. return out
  174. }
  175. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  176. func (in *CapacityRequestPolicy) DeepCopyInto(out *CapacityRequestPolicy) {
  177. *out = *in
  178. if in.Default != nil {
  179. in, out := &in.Default, &out.Default
  180. x := (*in).DeepCopy()
  181. *out = &x
  182. }
  183. if in.ValidValues != nil {
  184. in, out := &in.ValidValues, &out.ValidValues
  185. *out = make([]resource.Quantity, len(*in))
  186. for i := range *in {
  187. (*in)[i].DeepCopyInto(&(*out)[i])
  188. }
  189. }
  190. if in.ValidRange != nil {
  191. in, out := &in.ValidRange, &out.ValidRange
  192. *out = new(CapacityRequestPolicyRange)
  193. (*in).DeepCopyInto(*out)
  194. }
  195. return
  196. }
  197. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequestPolicy.
  198. func (in *CapacityRequestPolicy) DeepCopy() *CapacityRequestPolicy {
  199. if in == nil {
  200. return nil
  201. }
  202. out := new(CapacityRequestPolicy)
  203. in.DeepCopyInto(out)
  204. return out
  205. }
  206. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  207. func (in *CapacityRequestPolicyRange) DeepCopyInto(out *CapacityRequestPolicyRange) {
  208. *out = *in
  209. if in.Min != nil {
  210. in, out := &in.Min, &out.Min
  211. x := (*in).DeepCopy()
  212. *out = &x
  213. }
  214. if in.Max != nil {
  215. in, out := &in.Max, &out.Max
  216. x := (*in).DeepCopy()
  217. *out = &x
  218. }
  219. if in.Step != nil {
  220. in, out := &in.Step, &out.Step
  221. x := (*in).DeepCopy()
  222. *out = &x
  223. }
  224. return
  225. }
  226. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequestPolicyRange.
  227. func (in *CapacityRequestPolicyRange) DeepCopy() *CapacityRequestPolicyRange {
  228. if in == nil {
  229. return nil
  230. }
  231. out := new(CapacityRequestPolicyRange)
  232. in.DeepCopyInto(out)
  233. return out
  234. }
  235. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  236. func (in *CapacityRequirements) DeepCopyInto(out *CapacityRequirements) {
  237. *out = *in
  238. if in.Requests != nil {
  239. in, out := &in.Requests, &out.Requests
  240. *out = make(map[QualifiedName]resource.Quantity, len(*in))
  241. for key, val := range *in {
  242. (*out)[key] = val.DeepCopy()
  243. }
  244. }
  245. return
  246. }
  247. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequirements.
  248. func (in *CapacityRequirements) DeepCopy() *CapacityRequirements {
  249. if in == nil {
  250. return nil
  251. }
  252. out := new(CapacityRequirements)
  253. in.DeepCopyInto(out)
  254. return out
  255. }
  256. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  257. func (in *Counter) DeepCopyInto(out *Counter) {
  258. *out = *in
  259. out.Value = in.Value.DeepCopy()
  260. return
  261. }
  262. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Counter.
  263. func (in *Counter) DeepCopy() *Counter {
  264. if in == nil {
  265. return nil
  266. }
  267. out := new(Counter)
  268. in.DeepCopyInto(out)
  269. return out
  270. }
  271. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  272. func (in *CounterSet) DeepCopyInto(out *CounterSet) {
  273. *out = *in
  274. if in.Counters != nil {
  275. in, out := &in.Counters, &out.Counters
  276. *out = make(map[string]Counter, len(*in))
  277. for key, val := range *in {
  278. (*out)[key] = *val.DeepCopy()
  279. }
  280. }
  281. return
  282. }
  283. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CounterSet.
  284. func (in *CounterSet) DeepCopy() *CounterSet {
  285. if in == nil {
  286. return nil
  287. }
  288. out := new(CounterSet)
  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 *Device) DeepCopyInto(out *Device) {
  294. *out = *in
  295. if in.Basic != nil {
  296. in, out := &in.Basic, &out.Basic
  297. *out = new(BasicDevice)
  298. (*in).DeepCopyInto(*out)
  299. }
  300. return
  301. }
  302. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Device.
  303. func (in *Device) DeepCopy() *Device {
  304. if in == nil {
  305. return nil
  306. }
  307. out := new(Device)
  308. in.DeepCopyInto(out)
  309. return out
  310. }
  311. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  312. func (in *DeviceAllocationConfiguration) DeepCopyInto(out *DeviceAllocationConfiguration) {
  313. *out = *in
  314. if in.Requests != nil {
  315. in, out := &in.Requests, &out.Requests
  316. *out = make([]string, len(*in))
  317. copy(*out, *in)
  318. }
  319. in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
  320. return
  321. }
  322. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationConfiguration.
  323. func (in *DeviceAllocationConfiguration) DeepCopy() *DeviceAllocationConfiguration {
  324. if in == nil {
  325. return nil
  326. }
  327. out := new(DeviceAllocationConfiguration)
  328. in.DeepCopyInto(out)
  329. return out
  330. }
  331. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  332. func (in *DeviceAllocationResult) DeepCopyInto(out *DeviceAllocationResult) {
  333. *out = *in
  334. if in.Results != nil {
  335. in, out := &in.Results, &out.Results
  336. *out = make([]DeviceRequestAllocationResult, len(*in))
  337. for i := range *in {
  338. (*in)[i].DeepCopyInto(&(*out)[i])
  339. }
  340. }
  341. if in.Config != nil {
  342. in, out := &in.Config, &out.Config
  343. *out = make([]DeviceAllocationConfiguration, len(*in))
  344. for i := range *in {
  345. (*in)[i].DeepCopyInto(&(*out)[i])
  346. }
  347. }
  348. return
  349. }
  350. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationResult.
  351. func (in *DeviceAllocationResult) DeepCopy() *DeviceAllocationResult {
  352. if in == nil {
  353. return nil
  354. }
  355. out := new(DeviceAllocationResult)
  356. in.DeepCopyInto(out)
  357. return out
  358. }
  359. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  360. func (in *DeviceAttribute) DeepCopyInto(out *DeviceAttribute) {
  361. *out = *in
  362. if in.IntValue != nil {
  363. in, out := &in.IntValue, &out.IntValue
  364. *out = new(int64)
  365. **out = **in
  366. }
  367. if in.BoolValue != nil {
  368. in, out := &in.BoolValue, &out.BoolValue
  369. *out = new(bool)
  370. **out = **in
  371. }
  372. if in.StringValue != nil {
  373. in, out := &in.StringValue, &out.StringValue
  374. *out = new(string)
  375. **out = **in
  376. }
  377. if in.VersionValue != nil {
  378. in, out := &in.VersionValue, &out.VersionValue
  379. *out = new(string)
  380. **out = **in
  381. }
  382. return
  383. }
  384. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAttribute.
  385. func (in *DeviceAttribute) DeepCopy() *DeviceAttribute {
  386. if in == nil {
  387. return nil
  388. }
  389. out := new(DeviceAttribute)
  390. in.DeepCopyInto(out)
  391. return out
  392. }
  393. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  394. func (in *DeviceCapacity) DeepCopyInto(out *DeviceCapacity) {
  395. *out = *in
  396. out.Value = in.Value.DeepCopy()
  397. if in.RequestPolicy != nil {
  398. in, out := &in.RequestPolicy, &out.RequestPolicy
  399. *out = new(CapacityRequestPolicy)
  400. (*in).DeepCopyInto(*out)
  401. }
  402. return
  403. }
  404. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCapacity.
  405. func (in *DeviceCapacity) DeepCopy() *DeviceCapacity {
  406. if in == nil {
  407. return nil
  408. }
  409. out := new(DeviceCapacity)
  410. in.DeepCopyInto(out)
  411. return out
  412. }
  413. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  414. func (in *DeviceClaim) DeepCopyInto(out *DeviceClaim) {
  415. *out = *in
  416. if in.Requests != nil {
  417. in, out := &in.Requests, &out.Requests
  418. *out = make([]DeviceRequest, len(*in))
  419. for i := range *in {
  420. (*in)[i].DeepCopyInto(&(*out)[i])
  421. }
  422. }
  423. if in.Constraints != nil {
  424. in, out := &in.Constraints, &out.Constraints
  425. *out = make([]DeviceConstraint, len(*in))
  426. for i := range *in {
  427. (*in)[i].DeepCopyInto(&(*out)[i])
  428. }
  429. }
  430. if in.Config != nil {
  431. in, out := &in.Config, &out.Config
  432. *out = make([]DeviceClaimConfiguration, len(*in))
  433. for i := range *in {
  434. (*in)[i].DeepCopyInto(&(*out)[i])
  435. }
  436. }
  437. return
  438. }
  439. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaim.
  440. func (in *DeviceClaim) DeepCopy() *DeviceClaim {
  441. if in == nil {
  442. return nil
  443. }
  444. out := new(DeviceClaim)
  445. in.DeepCopyInto(out)
  446. return out
  447. }
  448. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  449. func (in *DeviceClaimConfiguration) DeepCopyInto(out *DeviceClaimConfiguration) {
  450. *out = *in
  451. if in.Requests != nil {
  452. in, out := &in.Requests, &out.Requests
  453. *out = make([]string, len(*in))
  454. copy(*out, *in)
  455. }
  456. in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
  457. return
  458. }
  459. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaimConfiguration.
  460. func (in *DeviceClaimConfiguration) DeepCopy() *DeviceClaimConfiguration {
  461. if in == nil {
  462. return nil
  463. }
  464. out := new(DeviceClaimConfiguration)
  465. in.DeepCopyInto(out)
  466. return out
  467. }
  468. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  469. func (in *DeviceClass) DeepCopyInto(out *DeviceClass) {
  470. *out = *in
  471. out.TypeMeta = in.TypeMeta
  472. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  473. in.Spec.DeepCopyInto(&out.Spec)
  474. return
  475. }
  476. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClass.
  477. func (in *DeviceClass) DeepCopy() *DeviceClass {
  478. if in == nil {
  479. return nil
  480. }
  481. out := new(DeviceClass)
  482. in.DeepCopyInto(out)
  483. return out
  484. }
  485. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  486. func (in *DeviceClass) DeepCopyObject() runtime.Object {
  487. if c := in.DeepCopy(); c != nil {
  488. return c
  489. }
  490. return nil
  491. }
  492. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  493. func (in *DeviceClassConfiguration) DeepCopyInto(out *DeviceClassConfiguration) {
  494. *out = *in
  495. in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
  496. return
  497. }
  498. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassConfiguration.
  499. func (in *DeviceClassConfiguration) DeepCopy() *DeviceClassConfiguration {
  500. if in == nil {
  501. return nil
  502. }
  503. out := new(DeviceClassConfiguration)
  504. in.DeepCopyInto(out)
  505. return out
  506. }
  507. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  508. func (in *DeviceClassList) DeepCopyInto(out *DeviceClassList) {
  509. *out = *in
  510. out.TypeMeta = in.TypeMeta
  511. in.ListMeta.DeepCopyInto(&out.ListMeta)
  512. if in.Items != nil {
  513. in, out := &in.Items, &out.Items
  514. *out = make([]DeviceClass, len(*in))
  515. for i := range *in {
  516. (*in)[i].DeepCopyInto(&(*out)[i])
  517. }
  518. }
  519. return
  520. }
  521. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassList.
  522. func (in *DeviceClassList) DeepCopy() *DeviceClassList {
  523. if in == nil {
  524. return nil
  525. }
  526. out := new(DeviceClassList)
  527. in.DeepCopyInto(out)
  528. return out
  529. }
  530. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  531. func (in *DeviceClassList) DeepCopyObject() runtime.Object {
  532. if c := in.DeepCopy(); c != nil {
  533. return c
  534. }
  535. return nil
  536. }
  537. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  538. func (in *DeviceClassSpec) DeepCopyInto(out *DeviceClassSpec) {
  539. *out = *in
  540. if in.Selectors != nil {
  541. in, out := &in.Selectors, &out.Selectors
  542. *out = make([]DeviceSelector, len(*in))
  543. for i := range *in {
  544. (*in)[i].DeepCopyInto(&(*out)[i])
  545. }
  546. }
  547. if in.Config != nil {
  548. in, out := &in.Config, &out.Config
  549. *out = make([]DeviceClassConfiguration, len(*in))
  550. for i := range *in {
  551. (*in)[i].DeepCopyInto(&(*out)[i])
  552. }
  553. }
  554. if in.ExtendedResourceName != nil {
  555. in, out := &in.ExtendedResourceName, &out.ExtendedResourceName
  556. *out = new(string)
  557. **out = **in
  558. }
  559. return
  560. }
  561. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassSpec.
  562. func (in *DeviceClassSpec) DeepCopy() *DeviceClassSpec {
  563. if in == nil {
  564. return nil
  565. }
  566. out := new(DeviceClassSpec)
  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 *DeviceConfiguration) DeepCopyInto(out *DeviceConfiguration) {
  572. *out = *in
  573. if in.Opaque != nil {
  574. in, out := &in.Opaque, &out.Opaque
  575. *out = new(OpaqueDeviceConfiguration)
  576. (*in).DeepCopyInto(*out)
  577. }
  578. return
  579. }
  580. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConfiguration.
  581. func (in *DeviceConfiguration) DeepCopy() *DeviceConfiguration {
  582. if in == nil {
  583. return nil
  584. }
  585. out := new(DeviceConfiguration)
  586. in.DeepCopyInto(out)
  587. return out
  588. }
  589. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  590. func (in *DeviceConstraint) DeepCopyInto(out *DeviceConstraint) {
  591. *out = *in
  592. if in.Requests != nil {
  593. in, out := &in.Requests, &out.Requests
  594. *out = make([]string, len(*in))
  595. copy(*out, *in)
  596. }
  597. if in.MatchAttribute != nil {
  598. in, out := &in.MatchAttribute, &out.MatchAttribute
  599. *out = new(FullyQualifiedName)
  600. **out = **in
  601. }
  602. if in.DistinctAttribute != nil {
  603. in, out := &in.DistinctAttribute, &out.DistinctAttribute
  604. *out = new(FullyQualifiedName)
  605. **out = **in
  606. }
  607. return
  608. }
  609. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConstraint.
  610. func (in *DeviceConstraint) DeepCopy() *DeviceConstraint {
  611. if in == nil {
  612. return nil
  613. }
  614. out := new(DeviceConstraint)
  615. in.DeepCopyInto(out)
  616. return out
  617. }
  618. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  619. func (in *DeviceCounterConsumption) DeepCopyInto(out *DeviceCounterConsumption) {
  620. *out = *in
  621. if in.Counters != nil {
  622. in, out := &in.Counters, &out.Counters
  623. *out = make(map[string]Counter, len(*in))
  624. for key, val := range *in {
  625. (*out)[key] = *val.DeepCopy()
  626. }
  627. }
  628. return
  629. }
  630. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCounterConsumption.
  631. func (in *DeviceCounterConsumption) DeepCopy() *DeviceCounterConsumption {
  632. if in == nil {
  633. return nil
  634. }
  635. out := new(DeviceCounterConsumption)
  636. in.DeepCopyInto(out)
  637. return out
  638. }
  639. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  640. func (in *DeviceRequest) DeepCopyInto(out *DeviceRequest) {
  641. *out = *in
  642. if in.Selectors != nil {
  643. in, out := &in.Selectors, &out.Selectors
  644. *out = make([]DeviceSelector, len(*in))
  645. for i := range *in {
  646. (*in)[i].DeepCopyInto(&(*out)[i])
  647. }
  648. }
  649. if in.AdminAccess != nil {
  650. in, out := &in.AdminAccess, &out.AdminAccess
  651. *out = new(bool)
  652. **out = **in
  653. }
  654. if in.FirstAvailable != nil {
  655. in, out := &in.FirstAvailable, &out.FirstAvailable
  656. *out = make([]DeviceSubRequest, len(*in))
  657. for i := range *in {
  658. (*in)[i].DeepCopyInto(&(*out)[i])
  659. }
  660. }
  661. if in.Tolerations != nil {
  662. in, out := &in.Tolerations, &out.Tolerations
  663. *out = make([]DeviceToleration, len(*in))
  664. for i := range *in {
  665. (*in)[i].DeepCopyInto(&(*out)[i])
  666. }
  667. }
  668. if in.Capacity != nil {
  669. in, out := &in.Capacity, &out.Capacity
  670. *out = new(CapacityRequirements)
  671. (*in).DeepCopyInto(*out)
  672. }
  673. return
  674. }
  675. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequest.
  676. func (in *DeviceRequest) DeepCopy() *DeviceRequest {
  677. if in == nil {
  678. return nil
  679. }
  680. out := new(DeviceRequest)
  681. in.DeepCopyInto(out)
  682. return out
  683. }
  684. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  685. func (in *DeviceRequestAllocationResult) DeepCopyInto(out *DeviceRequestAllocationResult) {
  686. *out = *in
  687. if in.AdminAccess != nil {
  688. in, out := &in.AdminAccess, &out.AdminAccess
  689. *out = new(bool)
  690. **out = **in
  691. }
  692. if in.Tolerations != nil {
  693. in, out := &in.Tolerations, &out.Tolerations
  694. *out = make([]DeviceToleration, len(*in))
  695. for i := range *in {
  696. (*in)[i].DeepCopyInto(&(*out)[i])
  697. }
  698. }
  699. if in.BindingConditions != nil {
  700. in, out := &in.BindingConditions, &out.BindingConditions
  701. *out = make([]string, len(*in))
  702. copy(*out, *in)
  703. }
  704. if in.BindingFailureConditions != nil {
  705. in, out := &in.BindingFailureConditions, &out.BindingFailureConditions
  706. *out = make([]string, len(*in))
  707. copy(*out, *in)
  708. }
  709. if in.ShareID != nil {
  710. in, out := &in.ShareID, &out.ShareID
  711. *out = new(types.UID)
  712. **out = **in
  713. }
  714. if in.ConsumedCapacity != nil {
  715. in, out := &in.ConsumedCapacity, &out.ConsumedCapacity
  716. *out = make(map[QualifiedName]resource.Quantity, len(*in))
  717. for key, val := range *in {
  718. (*out)[key] = val.DeepCopy()
  719. }
  720. }
  721. return
  722. }
  723. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequestAllocationResult.
  724. func (in *DeviceRequestAllocationResult) DeepCopy() *DeviceRequestAllocationResult {
  725. if in == nil {
  726. return nil
  727. }
  728. out := new(DeviceRequestAllocationResult)
  729. in.DeepCopyInto(out)
  730. return out
  731. }
  732. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  733. func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector) {
  734. *out = *in
  735. if in.CEL != nil {
  736. in, out := &in.CEL, &out.CEL
  737. *out = new(CELDeviceSelector)
  738. **out = **in
  739. }
  740. return
  741. }
  742. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSelector.
  743. func (in *DeviceSelector) DeepCopy() *DeviceSelector {
  744. if in == nil {
  745. return nil
  746. }
  747. out := new(DeviceSelector)
  748. in.DeepCopyInto(out)
  749. return out
  750. }
  751. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  752. func (in *DeviceSubRequest) DeepCopyInto(out *DeviceSubRequest) {
  753. *out = *in
  754. if in.Selectors != nil {
  755. in, out := &in.Selectors, &out.Selectors
  756. *out = make([]DeviceSelector, len(*in))
  757. for i := range *in {
  758. (*in)[i].DeepCopyInto(&(*out)[i])
  759. }
  760. }
  761. if in.Tolerations != nil {
  762. in, out := &in.Tolerations, &out.Tolerations
  763. *out = make([]DeviceToleration, len(*in))
  764. for i := range *in {
  765. (*in)[i].DeepCopyInto(&(*out)[i])
  766. }
  767. }
  768. if in.Capacity != nil {
  769. in, out := &in.Capacity, &out.Capacity
  770. *out = new(CapacityRequirements)
  771. (*in).DeepCopyInto(*out)
  772. }
  773. return
  774. }
  775. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSubRequest.
  776. func (in *DeviceSubRequest) DeepCopy() *DeviceSubRequest {
  777. if in == nil {
  778. return nil
  779. }
  780. out := new(DeviceSubRequest)
  781. in.DeepCopyInto(out)
  782. return out
  783. }
  784. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  785. func (in *DeviceTaint) DeepCopyInto(out *DeviceTaint) {
  786. *out = *in
  787. if in.TimeAdded != nil {
  788. in, out := &in.TimeAdded, &out.TimeAdded
  789. *out = (*in).DeepCopy()
  790. }
  791. return
  792. }
  793. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceTaint.
  794. func (in *DeviceTaint) DeepCopy() *DeviceTaint {
  795. if in == nil {
  796. return nil
  797. }
  798. out := new(DeviceTaint)
  799. in.DeepCopyInto(out)
  800. return out
  801. }
  802. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  803. func (in *DeviceToleration) DeepCopyInto(out *DeviceToleration) {
  804. *out = *in
  805. if in.TolerationSeconds != nil {
  806. in, out := &in.TolerationSeconds, &out.TolerationSeconds
  807. *out = new(int64)
  808. **out = **in
  809. }
  810. return
  811. }
  812. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceToleration.
  813. func (in *DeviceToleration) DeepCopy() *DeviceToleration {
  814. if in == nil {
  815. return nil
  816. }
  817. out := new(DeviceToleration)
  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.NodeSelector != nil {
  1113. in, out := &in.NodeSelector, &out.NodeSelector
  1114. *out = new(corev1.NodeSelector)
  1115. (*in).DeepCopyInto(*out)
  1116. }
  1117. if in.Devices != nil {
  1118. in, out := &in.Devices, &out.Devices
  1119. *out = make([]Device, len(*in))
  1120. for i := range *in {
  1121. (*in)[i].DeepCopyInto(&(*out)[i])
  1122. }
  1123. }
  1124. if in.PerDeviceNodeSelection != nil {
  1125. in, out := &in.PerDeviceNodeSelection, &out.PerDeviceNodeSelection
  1126. *out = new(bool)
  1127. **out = **in
  1128. }
  1129. if in.SharedCounters != nil {
  1130. in, out := &in.SharedCounters, &out.SharedCounters
  1131. *out = make([]CounterSet, len(*in))
  1132. for i := range *in {
  1133. (*in)[i].DeepCopyInto(&(*out)[i])
  1134. }
  1135. }
  1136. return
  1137. }
  1138. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceSpec.
  1139. func (in *ResourceSliceSpec) DeepCopy() *ResourceSliceSpec {
  1140. if in == nil {
  1141. return nil
  1142. }
  1143. out := new(ResourceSliceSpec)
  1144. in.DeepCopyInto(out)
  1145. return out
  1146. }