blob: 6ad01d6db19a5d0553451efe7725ee9bdd393bb2 [file] [log] [blame]
sslobodrd046be82019-01-16 10:02:22 -05001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by client-gen. DO NOT EDIT.
18
19package kubernetes
20
21import (
22 discovery "k8s.io/client-go/discovery"
23 admissionregistrationv1alpha1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1"
24 admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1"
25 appsv1 "k8s.io/client-go/kubernetes/typed/apps/v1"
26 appsv1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1"
27 appsv1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2"
28 auditregistrationv1alpha1 "k8s.io/client-go/kubernetes/typed/auditregistration/v1alpha1"
29 authenticationv1 "k8s.io/client-go/kubernetes/typed/authentication/v1"
30 authenticationv1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1"
31 authorizationv1 "k8s.io/client-go/kubernetes/typed/authorization/v1"
32 authorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1"
33 autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1"
34 autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1"
35 autoscalingv2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2"
36 batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1"
37 batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1"
38 batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1"
39 certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
40 coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1"
41 corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
42 eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
43 extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
44 networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1"
45 policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
46 rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1"
47 rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
48 rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
49 schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
50 schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
51 settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
52 storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
53 storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
54 storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
55 rest "k8s.io/client-go/rest"
56 flowcontrol "k8s.io/client-go/util/flowcontrol"
57)
58
59type Interface interface {
60 Discovery() discovery.DiscoveryInterface
61 AdmissionregistrationV1alpha1() admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Interface
62 AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
63 // Deprecated: please explicitly pick a version if possible.
64 Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
65 AppsV1beta1() appsv1beta1.AppsV1beta1Interface
66 AppsV1beta2() appsv1beta2.AppsV1beta2Interface
67 AppsV1() appsv1.AppsV1Interface
68 // Deprecated: please explicitly pick a version if possible.
69 Apps() appsv1.AppsV1Interface
70 AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
71 // Deprecated: please explicitly pick a version if possible.
72 Auditregistration() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
73 AuthenticationV1() authenticationv1.AuthenticationV1Interface
74 // Deprecated: please explicitly pick a version if possible.
75 Authentication() authenticationv1.AuthenticationV1Interface
76 AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
77 AuthorizationV1() authorizationv1.AuthorizationV1Interface
78 // Deprecated: please explicitly pick a version if possible.
79 Authorization() authorizationv1.AuthorizationV1Interface
80 AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
81 AutoscalingV1() autoscalingv1.AutoscalingV1Interface
82 // Deprecated: please explicitly pick a version if possible.
83 Autoscaling() autoscalingv1.AutoscalingV1Interface
84 AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
85 AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
86 BatchV1() batchv1.BatchV1Interface
87 // Deprecated: please explicitly pick a version if possible.
88 Batch() batchv1.BatchV1Interface
89 BatchV1beta1() batchv1beta1.BatchV1beta1Interface
90 BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
91 CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
92 // Deprecated: please explicitly pick a version if possible.
93 Certificates() certificatesv1beta1.CertificatesV1beta1Interface
94 CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
95 // Deprecated: please explicitly pick a version if possible.
96 Coordination() coordinationv1beta1.CoordinationV1beta1Interface
97 CoreV1() corev1.CoreV1Interface
98 // Deprecated: please explicitly pick a version if possible.
99 Core() corev1.CoreV1Interface
100 EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
101 // Deprecated: please explicitly pick a version if possible.
102 Events() eventsv1beta1.EventsV1beta1Interface
103 ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
104 // Deprecated: please explicitly pick a version if possible.
105 Extensions() extensionsv1beta1.ExtensionsV1beta1Interface
106 NetworkingV1() networkingv1.NetworkingV1Interface
107 // Deprecated: please explicitly pick a version if possible.
108 Networking() networkingv1.NetworkingV1Interface
109 PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
110 // Deprecated: please explicitly pick a version if possible.
111 Policy() policyv1beta1.PolicyV1beta1Interface
112 RbacV1() rbacv1.RbacV1Interface
113 // Deprecated: please explicitly pick a version if possible.
114 Rbac() rbacv1.RbacV1Interface
115 RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
116 RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
117 SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
118 SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
119 // Deprecated: please explicitly pick a version if possible.
120 Scheduling() schedulingv1beta1.SchedulingV1beta1Interface
121 SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
122 // Deprecated: please explicitly pick a version if possible.
123 Settings() settingsv1alpha1.SettingsV1alpha1Interface
124 StorageV1beta1() storagev1beta1.StorageV1beta1Interface
125 StorageV1() storagev1.StorageV1Interface
126 // Deprecated: please explicitly pick a version if possible.
127 Storage() storagev1.StorageV1Interface
128 StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
129}
130
131// Clientset contains the clients for groups. Each group has exactly one
132// version included in a Clientset.
133type Clientset struct {
134 *discovery.DiscoveryClient
135 admissionregistrationV1alpha1 *admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Client
136 admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client
137 appsV1beta1 *appsv1beta1.AppsV1beta1Client
138 appsV1beta2 *appsv1beta2.AppsV1beta2Client
139 appsV1 *appsv1.AppsV1Client
140 auditregistrationV1alpha1 *auditregistrationv1alpha1.AuditregistrationV1alpha1Client
141 authenticationV1 *authenticationv1.AuthenticationV1Client
142 authenticationV1beta1 *authenticationv1beta1.AuthenticationV1beta1Client
143 authorizationV1 *authorizationv1.AuthorizationV1Client
144 authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client
145 autoscalingV1 *autoscalingv1.AutoscalingV1Client
146 autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client
147 autoscalingV2beta2 *autoscalingv2beta2.AutoscalingV2beta2Client
148 batchV1 *batchv1.BatchV1Client
149 batchV1beta1 *batchv1beta1.BatchV1beta1Client
150 batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client
151 certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client
152 coordinationV1beta1 *coordinationv1beta1.CoordinationV1beta1Client
153 coreV1 *corev1.CoreV1Client
154 eventsV1beta1 *eventsv1beta1.EventsV1beta1Client
155 extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client
156 networkingV1 *networkingv1.NetworkingV1Client
157 policyV1beta1 *policyv1beta1.PolicyV1beta1Client
158 rbacV1 *rbacv1.RbacV1Client
159 rbacV1beta1 *rbacv1beta1.RbacV1beta1Client
160 rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
161 schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
162 schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client
163 settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client
164 storageV1beta1 *storagev1beta1.StorageV1beta1Client
165 storageV1 *storagev1.StorageV1Client
166 storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
167}
168
169// AdmissionregistrationV1alpha1 retrieves the AdmissionregistrationV1alpha1Client
170func (c *Clientset) AdmissionregistrationV1alpha1() admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Interface {
171 return c.admissionregistrationV1alpha1
172}
173
174// AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
175func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
176 return c.admissionregistrationV1beta1
177}
178
179// Deprecated: Admissionregistration retrieves the default version of AdmissionregistrationClient.
180// Please explicitly pick a version.
181func (c *Clientset) Admissionregistration() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
182 return c.admissionregistrationV1beta1
183}
184
185// AppsV1beta1 retrieves the AppsV1beta1Client
186func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
187 return c.appsV1beta1
188}
189
190// AppsV1beta2 retrieves the AppsV1beta2Client
191func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface {
192 return c.appsV1beta2
193}
194
195// AppsV1 retrieves the AppsV1Client
196func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
197 return c.appsV1
198}
199
200// Deprecated: Apps retrieves the default version of AppsClient.
201// Please explicitly pick a version.
202func (c *Clientset) Apps() appsv1.AppsV1Interface {
203 return c.appsV1
204}
205
206// AuditregistrationV1alpha1 retrieves the AuditregistrationV1alpha1Client
207func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
208 return c.auditregistrationV1alpha1
209}
210
211// Deprecated: Auditregistration retrieves the default version of AuditregistrationClient.
212// Please explicitly pick a version.
213func (c *Clientset) Auditregistration() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
214 return c.auditregistrationV1alpha1
215}
216
217// AuthenticationV1 retrieves the AuthenticationV1Client
218func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
219 return c.authenticationV1
220}
221
222// Deprecated: Authentication retrieves the default version of AuthenticationClient.
223// Please explicitly pick a version.
224func (c *Clientset) Authentication() authenticationv1.AuthenticationV1Interface {
225 return c.authenticationV1
226}
227
228// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
229func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
230 return c.authenticationV1beta1
231}
232
233// AuthorizationV1 retrieves the AuthorizationV1Client
234func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
235 return c.authorizationV1
236}
237
238// Deprecated: Authorization retrieves the default version of AuthorizationClient.
239// Please explicitly pick a version.
240func (c *Clientset) Authorization() authorizationv1.AuthorizationV1Interface {
241 return c.authorizationV1
242}
243
244// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
245func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
246 return c.authorizationV1beta1
247}
248
249// AutoscalingV1 retrieves the AutoscalingV1Client
250func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
251 return c.autoscalingV1
252}
253
254// Deprecated: Autoscaling retrieves the default version of AutoscalingClient.
255// Please explicitly pick a version.
256func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface {
257 return c.autoscalingV1
258}
259
260// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
261func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
262 return c.autoscalingV2beta1
263}
264
265// AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
266func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface {
267 return c.autoscalingV2beta2
268}
269
270// BatchV1 retrieves the BatchV1Client
271func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
272 return c.batchV1
273}
274
275// Deprecated: Batch retrieves the default version of BatchClient.
276// Please explicitly pick a version.
277func (c *Clientset) Batch() batchv1.BatchV1Interface {
278 return c.batchV1
279}
280
281// BatchV1beta1 retrieves the BatchV1beta1Client
282func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
283 return c.batchV1beta1
284}
285
286// BatchV2alpha1 retrieves the BatchV2alpha1Client
287func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface {
288 return c.batchV2alpha1
289}
290
291// CertificatesV1beta1 retrieves the CertificatesV1beta1Client
292func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface {
293 return c.certificatesV1beta1
294}
295
296// Deprecated: Certificates retrieves the default version of CertificatesClient.
297// Please explicitly pick a version.
298func (c *Clientset) Certificates() certificatesv1beta1.CertificatesV1beta1Interface {
299 return c.certificatesV1beta1
300}
301
302// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
303func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
304 return c.coordinationV1beta1
305}
306
307// Deprecated: Coordination retrieves the default version of CoordinationClient.
308// Please explicitly pick a version.
309func (c *Clientset) Coordination() coordinationv1beta1.CoordinationV1beta1Interface {
310 return c.coordinationV1beta1
311}
312
313// CoreV1 retrieves the CoreV1Client
314func (c *Clientset) CoreV1() corev1.CoreV1Interface {
315 return c.coreV1
316}
317
318// Deprecated: Core retrieves the default version of CoreClient.
319// Please explicitly pick a version.
320func (c *Clientset) Core() corev1.CoreV1Interface {
321 return c.coreV1
322}
323
324// EventsV1beta1 retrieves the EventsV1beta1Client
325func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
326 return c.eventsV1beta1
327}
328
329// Deprecated: Events retrieves the default version of EventsClient.
330// Please explicitly pick a version.
331func (c *Clientset) Events() eventsv1beta1.EventsV1beta1Interface {
332 return c.eventsV1beta1
333}
334
335// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
336func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
337 return c.extensionsV1beta1
338}
339
340// Deprecated: Extensions retrieves the default version of ExtensionsClient.
341// Please explicitly pick a version.
342func (c *Clientset) Extensions() extensionsv1beta1.ExtensionsV1beta1Interface {
343 return c.extensionsV1beta1
344}
345
346// NetworkingV1 retrieves the NetworkingV1Client
347func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
348 return c.networkingV1
349}
350
351// Deprecated: Networking retrieves the default version of NetworkingClient.
352// Please explicitly pick a version.
353func (c *Clientset) Networking() networkingv1.NetworkingV1Interface {
354 return c.networkingV1
355}
356
357// PolicyV1beta1 retrieves the PolicyV1beta1Client
358func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
359 return c.policyV1beta1
360}
361
362// Deprecated: Policy retrieves the default version of PolicyClient.
363// Please explicitly pick a version.
364func (c *Clientset) Policy() policyv1beta1.PolicyV1beta1Interface {
365 return c.policyV1beta1
366}
367
368// RbacV1 retrieves the RbacV1Client
369func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
370 return c.rbacV1
371}
372
373// Deprecated: Rbac retrieves the default version of RbacClient.
374// Please explicitly pick a version.
375func (c *Clientset) Rbac() rbacv1.RbacV1Interface {
376 return c.rbacV1
377}
378
379// RbacV1beta1 retrieves the RbacV1beta1Client
380func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
381 return c.rbacV1beta1
382}
383
384// RbacV1alpha1 retrieves the RbacV1alpha1Client
385func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
386 return c.rbacV1alpha1
387}
388
389// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
390func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface {
391 return c.schedulingV1alpha1
392}
393
394// SchedulingV1beta1 retrieves the SchedulingV1beta1Client
395func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface {
396 return c.schedulingV1beta1
397}
398
399// Deprecated: Scheduling retrieves the default version of SchedulingClient.
400// Please explicitly pick a version.
401func (c *Clientset) Scheduling() schedulingv1beta1.SchedulingV1beta1Interface {
402 return c.schedulingV1beta1
403}
404
405// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
406func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
407 return c.settingsV1alpha1
408}
409
410// Deprecated: Settings retrieves the default version of SettingsClient.
411// Please explicitly pick a version.
412func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
413 return c.settingsV1alpha1
414}
415
416// StorageV1beta1 retrieves the StorageV1beta1Client
417func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
418 return c.storageV1beta1
419}
420
421// StorageV1 retrieves the StorageV1Client
422func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
423 return c.storageV1
424}
425
426// Deprecated: Storage retrieves the default version of StorageClient.
427// Please explicitly pick a version.
428func (c *Clientset) Storage() storagev1.StorageV1Interface {
429 return c.storageV1
430}
431
432// StorageV1alpha1 retrieves the StorageV1alpha1Client
433func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
434 return c.storageV1alpha1
435}
436
437// Discovery retrieves the DiscoveryClient
438func (c *Clientset) Discovery() discovery.DiscoveryInterface {
439 if c == nil {
440 return nil
441 }
442 return c.DiscoveryClient
443}
444
445// NewForConfig creates a new Clientset for the given config.
446func NewForConfig(c *rest.Config) (*Clientset, error) {
447 configShallowCopy := *c
448 if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
449 configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
450 }
451 var cs Clientset
452 var err error
453 cs.admissionregistrationV1alpha1, err = admissionregistrationv1alpha1.NewForConfig(&configShallowCopy)
454 if err != nil {
455 return nil, err
456 }
457 cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy)
458 if err != nil {
459 return nil, err
460 }
461 cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy)
462 if err != nil {
463 return nil, err
464 }
465 cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy)
466 if err != nil {
467 return nil, err
468 }
469 cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy)
470 if err != nil {
471 return nil, err
472 }
473 cs.auditregistrationV1alpha1, err = auditregistrationv1alpha1.NewForConfig(&configShallowCopy)
474 if err != nil {
475 return nil, err
476 }
477 cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy)
478 if err != nil {
479 return nil, err
480 }
481 cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy)
482 if err != nil {
483 return nil, err
484 }
485 cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy)
486 if err != nil {
487 return nil, err
488 }
489 cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy)
490 if err != nil {
491 return nil, err
492 }
493 cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy)
494 if err != nil {
495 return nil, err
496 }
497 cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy)
498 if err != nil {
499 return nil, err
500 }
501 cs.autoscalingV2beta2, err = autoscalingv2beta2.NewForConfig(&configShallowCopy)
502 if err != nil {
503 return nil, err
504 }
505 cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy)
506 if err != nil {
507 return nil, err
508 }
509 cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy)
510 if err != nil {
511 return nil, err
512 }
513 cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy)
514 if err != nil {
515 return nil, err
516 }
517 cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy)
518 if err != nil {
519 return nil, err
520 }
521 cs.coordinationV1beta1, err = coordinationv1beta1.NewForConfig(&configShallowCopy)
522 if err != nil {
523 return nil, err
524 }
525 cs.coreV1, err = corev1.NewForConfig(&configShallowCopy)
526 if err != nil {
527 return nil, err
528 }
529 cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy)
530 if err != nil {
531 return nil, err
532 }
533 cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
534 if err != nil {
535 return nil, err
536 }
537 cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy)
538 if err != nil {
539 return nil, err
540 }
541 cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy)
542 if err != nil {
543 return nil, err
544 }
545 cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy)
546 if err != nil {
547 return nil, err
548 }
549 cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy)
550 if err != nil {
551 return nil, err
552 }
553 cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy)
554 if err != nil {
555 return nil, err
556 }
557 cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy)
558 if err != nil {
559 return nil, err
560 }
561 cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy)
562 if err != nil {
563 return nil, err
564 }
565 cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy)
566 if err != nil {
567 return nil, err
568 }
569 cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
570 if err != nil {
571 return nil, err
572 }
573 cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy)
574 if err != nil {
575 return nil, err
576 }
577 cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
578 if err != nil {
579 return nil, err
580 }
581
582 cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
583 if err != nil {
584 return nil, err
585 }
586 return &cs, nil
587}
588
589// NewForConfigOrDie creates a new Clientset for the given config and
590// panics if there is an error in the config.
591func NewForConfigOrDie(c *rest.Config) *Clientset {
592 var cs Clientset
593 cs.admissionregistrationV1alpha1 = admissionregistrationv1alpha1.NewForConfigOrDie(c)
594 cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c)
595 cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c)
596 cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c)
597 cs.appsV1 = appsv1.NewForConfigOrDie(c)
598 cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.NewForConfigOrDie(c)
599 cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c)
600 cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c)
601 cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c)
602 cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c)
603 cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c)
604 cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c)
605 cs.autoscalingV2beta2 = autoscalingv2beta2.NewForConfigOrDie(c)
606 cs.batchV1 = batchv1.NewForConfigOrDie(c)
607 cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c)
608 cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c)
609 cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c)
610 cs.coordinationV1beta1 = coordinationv1beta1.NewForConfigOrDie(c)
611 cs.coreV1 = corev1.NewForConfigOrDie(c)
612 cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c)
613 cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
614 cs.networkingV1 = networkingv1.NewForConfigOrDie(c)
615 cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c)
616 cs.rbacV1 = rbacv1.NewForConfigOrDie(c)
617 cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c)
618 cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
619 cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
620 cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c)
621 cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
622 cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
623 cs.storageV1 = storagev1.NewForConfigOrDie(c)
624 cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
625
626 cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
627 return &cs
628}
629
630// New creates a new Clientset for the given RESTClient.
631func New(c rest.Interface) *Clientset {
632 var cs Clientset
633 cs.admissionregistrationV1alpha1 = admissionregistrationv1alpha1.New(c)
634 cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c)
635 cs.appsV1beta1 = appsv1beta1.New(c)
636 cs.appsV1beta2 = appsv1beta2.New(c)
637 cs.appsV1 = appsv1.New(c)
638 cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.New(c)
639 cs.authenticationV1 = authenticationv1.New(c)
640 cs.authenticationV1beta1 = authenticationv1beta1.New(c)
641 cs.authorizationV1 = authorizationv1.New(c)
642 cs.authorizationV1beta1 = authorizationv1beta1.New(c)
643 cs.autoscalingV1 = autoscalingv1.New(c)
644 cs.autoscalingV2beta1 = autoscalingv2beta1.New(c)
645 cs.autoscalingV2beta2 = autoscalingv2beta2.New(c)
646 cs.batchV1 = batchv1.New(c)
647 cs.batchV1beta1 = batchv1beta1.New(c)
648 cs.batchV2alpha1 = batchv2alpha1.New(c)
649 cs.certificatesV1beta1 = certificatesv1beta1.New(c)
650 cs.coordinationV1beta1 = coordinationv1beta1.New(c)
651 cs.coreV1 = corev1.New(c)
652 cs.eventsV1beta1 = eventsv1beta1.New(c)
653 cs.extensionsV1beta1 = extensionsv1beta1.New(c)
654 cs.networkingV1 = networkingv1.New(c)
655 cs.policyV1beta1 = policyv1beta1.New(c)
656 cs.rbacV1 = rbacv1.New(c)
657 cs.rbacV1beta1 = rbacv1beta1.New(c)
658 cs.rbacV1alpha1 = rbacv1alpha1.New(c)
659 cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
660 cs.schedulingV1beta1 = schedulingv1beta1.New(c)
661 cs.settingsV1alpha1 = settingsv1alpha1.New(c)
662 cs.storageV1beta1 = storagev1beta1.New(c)
663 cs.storageV1 = storagev1.New(c)
664 cs.storageV1alpha1 = storagev1alpha1.New(c)
665
666 cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
667 return &cs
668}