codekingpro commited on
Commit
413ae99
·
verified ·
1 Parent(s): 1e4b309

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. python/user_packages/Python313/site-packages/kubernetes-35.0.0.dist-info/licenses/LICENSE +202 -0
  2. python/user_packages/Python313/site-packages/kubernetes/__pycache__/__init__.cpython-313.pyc +0 -0
  3. python/user_packages/Python313/site-packages/kubernetes/client/__init__.py +816 -0
  4. python/user_packages/Python313/site-packages/kubernetes/client/api/__init__.py +70 -0
  5. python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_api.py +142 -0
  6. python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_v1_api.py +0 -0
  7. python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_v1alpha1_api.py +0 -0
  8. python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_v1beta1_api.py +0 -0
  9. python/user_packages/Python313/site-packages/kubernetes/client/api/apiextensions_api.py +142 -0
  10. python/user_packages/Python313/site-packages/kubernetes/client/api/apiextensions_v1_api.py +0 -0
  11. python/user_packages/Python313/site-packages/kubernetes/client/api/apiregistration_api.py +142 -0
  12. python/user_packages/Python313/site-packages/kubernetes/client/api/apiregistration_v1_api.py +0 -0
  13. python/user_packages/Python313/site-packages/kubernetes/client/api/apis_api.py +142 -0
  14. python/user_packages/Python313/site-packages/kubernetes/client/api/apps_api.py +142 -0
  15. python/user_packages/Python313/site-packages/kubernetes/client/api/apps_v1_api.py +0 -0
  16. python/user_packages/Python313/site-packages/kubernetes/client/api/authentication_api.py +142 -0
  17. python/user_packages/Python313/site-packages/kubernetes/client/api/authentication_v1_api.py +410 -0
  18. python/user_packages/Python313/site-packages/kubernetes/client/api/authorization_api.py +142 -0
  19. python/user_packages/Python313/site-packages/kubernetes/client/api/authorization_v1_api.py +687 -0
  20. python/user_packages/Python313/site-packages/kubernetes/client/api/autoscaling_api.py +142 -0
  21. python/user_packages/Python313/site-packages/kubernetes/client/api/autoscaling_v1_api.py +0 -0
  22. python/user_packages/Python313/site-packages/kubernetes/client/api/autoscaling_v2_api.py +0 -0
  23. python/user_packages/Python313/site-packages/kubernetes/client/api/batch_api.py +142 -0
  24. python/user_packages/Python313/site-packages/kubernetes/client/api/batch_v1_api.py +0 -0
  25. python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_api.py +142 -0
  26. python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_v1_api.py +0 -0
  27. python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_v1alpha1_api.py +1179 -0
  28. python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_v1beta1_api.py +0 -0
  29. python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_api.py +142 -0
  30. python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_v1_api.py +0 -0
  31. python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_v1alpha2_api.py +0 -0
  32. python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_v1beta1_api.py +0 -0
  33. python/user_packages/Python313/site-packages/kubernetes/client/api/core_api.py +142 -0
  34. python/user_packages/Python313/site-packages/kubernetes/client/api/core_v1_api.py +0 -0
  35. python/user_packages/Python313/site-packages/kubernetes/client/api/custom_objects_api.py +0 -0
  36. python/user_packages/Python313/site-packages/kubernetes/client/api/discovery_api.py +142 -0
  37. python/user_packages/Python313/site-packages/kubernetes/client/api/discovery_v1_api.py +0 -0
  38. python/user_packages/Python313/site-packages/kubernetes/client/api/events_api.py +142 -0
  39. python/user_packages/Python313/site-packages/kubernetes/client/api/events_v1_api.py +0 -0
  40. python/user_packages/Python313/site-packages/kubernetes/client/api/flowcontrol_apiserver_api.py +142 -0
  41. python/user_packages/Python313/site-packages/kubernetes/client/api/flowcontrol_apiserver_v1_api.py +0 -0
  42. python/user_packages/Python313/site-packages/kubernetes/client/api/internal_apiserver_api.py +142 -0
  43. python/user_packages/Python313/site-packages/kubernetes/client/api/internal_apiserver_v1alpha1_api.py +0 -0
  44. python/user_packages/Python313/site-packages/kubernetes/client/api/logs_api.py +244 -0
  45. python/user_packages/Python313/site-packages/kubernetes/client/api/networking_api.py +142 -0
  46. python/user_packages/Python313/site-packages/kubernetes/client/api/networking_v1_api.py +0 -0
  47. python/user_packages/Python313/site-packages/kubernetes/client/api/networking_v1beta1_api.py +0 -0
  48. python/user_packages/Python313/site-packages/kubernetes/client/api/node_api.py +142 -0
  49. python/user_packages/Python313/site-packages/kubernetes/client/api/node_v1_api.py +1179 -0
  50. python/user_packages/Python313/site-packages/kubernetes/client/api/openid_api.py +142 -0
python/user_packages/Python313/site-packages/kubernetes-35.0.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2014 The Kubernetes Authors.
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
python/user_packages/Python313/site-packages/kubernetes/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (473 Bytes). View file
 
python/user_packages/Python313/site-packages/kubernetes/client/__init__.py ADDED
@@ -0,0 +1,816 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Kubernetes
7
+
8
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
9
+
10
+ The version of the OpenAPI document: release-1.35
11
+ Generated by: https://openapi-generator.tech
12
+ """
13
+
14
+
15
+ from __future__ import absolute_import
16
+
17
+ __version__ = "35.0.0"
18
+
19
+ # import apis into sdk package
20
+ from kubernetes.client.api.well_known_api import WellKnownApi
21
+ from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
22
+ from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api
23
+ from kubernetes.client.api.admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api
24
+ from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api
25
+ from kubernetes.client.api.apiextensions_api import ApiextensionsApi
26
+ from kubernetes.client.api.apiextensions_v1_api import ApiextensionsV1Api
27
+ from kubernetes.client.api.apiregistration_api import ApiregistrationApi
28
+ from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api
29
+ from kubernetes.client.api.apis_api import ApisApi
30
+ from kubernetes.client.api.apps_api import AppsApi
31
+ from kubernetes.client.api.apps_v1_api import AppsV1Api
32
+ from kubernetes.client.api.authentication_api import AuthenticationApi
33
+ from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api
34
+ from kubernetes.client.api.authorization_api import AuthorizationApi
35
+ from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api
36
+ from kubernetes.client.api.autoscaling_api import AutoscalingApi
37
+ from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api
38
+ from kubernetes.client.api.autoscaling_v2_api import AutoscalingV2Api
39
+ from kubernetes.client.api.batch_api import BatchApi
40
+ from kubernetes.client.api.batch_v1_api import BatchV1Api
41
+ from kubernetes.client.api.certificates_api import CertificatesApi
42
+ from kubernetes.client.api.certificates_v1_api import CertificatesV1Api
43
+ from kubernetes.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api
44
+ from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api
45
+ from kubernetes.client.api.coordination_api import CoordinationApi
46
+ from kubernetes.client.api.coordination_v1_api import CoordinationV1Api
47
+ from kubernetes.client.api.coordination_v1alpha2_api import CoordinationV1alpha2Api
48
+ from kubernetes.client.api.coordination_v1beta1_api import CoordinationV1beta1Api
49
+ from kubernetes.client.api.core_api import CoreApi
50
+ from kubernetes.client.api.core_v1_api import CoreV1Api
51
+ from kubernetes.client.api.custom_objects_api import CustomObjectsApi
52
+ from kubernetes.client.api.discovery_api import DiscoveryApi
53
+ from kubernetes.client.api.discovery_v1_api import DiscoveryV1Api
54
+ from kubernetes.client.api.events_api import EventsApi
55
+ from kubernetes.client.api.events_v1_api import EventsV1Api
56
+ from kubernetes.client.api.flowcontrol_apiserver_api import FlowcontrolApiserverApi
57
+ from kubernetes.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api
58
+ from kubernetes.client.api.internal_apiserver_api import InternalApiserverApi
59
+ from kubernetes.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api
60
+ from kubernetes.client.api.logs_api import LogsApi
61
+ from kubernetes.client.api.networking_api import NetworkingApi
62
+ from kubernetes.client.api.networking_v1_api import NetworkingV1Api
63
+ from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api
64
+ from kubernetes.client.api.node_api import NodeApi
65
+ from kubernetes.client.api.node_v1_api import NodeV1Api
66
+ from kubernetes.client.api.openid_api import OpenidApi
67
+ from kubernetes.client.api.policy_api import PolicyApi
68
+ from kubernetes.client.api.policy_v1_api import PolicyV1Api
69
+ from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi
70
+ from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api
71
+ from kubernetes.client.api.resource_api import ResourceApi
72
+ from kubernetes.client.api.resource_v1_api import ResourceV1Api
73
+ from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api
74
+ from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api
75
+ from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api
76
+ from kubernetes.client.api.scheduling_api import SchedulingApi
77
+ from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api
78
+ from kubernetes.client.api.scheduling_v1alpha1_api import SchedulingV1alpha1Api
79
+ from kubernetes.client.api.storage_api import StorageApi
80
+ from kubernetes.client.api.storage_v1_api import StorageV1Api
81
+ from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api
82
+ from kubernetes.client.api.storagemigration_api import StoragemigrationApi
83
+ from kubernetes.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api
84
+ from kubernetes.client.api.version_api import VersionApi
85
+
86
+ # import ApiClient
87
+ from kubernetes.client.api_client import ApiClient
88
+ from kubernetes.client.configuration import Configuration
89
+ from kubernetes.client.exceptions import OpenApiException
90
+ from kubernetes.client.exceptions import ApiTypeError
91
+ from kubernetes.client.exceptions import ApiValueError
92
+ from kubernetes.client.exceptions import ApiKeyError
93
+ from kubernetes.client.exceptions import ApiException
94
+ # import models into sdk package
95
+ from kubernetes.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference
96
+ from kubernetes.client.models.admissionregistration_v1_webhook_client_config import AdmissionregistrationV1WebhookClientConfig
97
+ from kubernetes.client.models.apiextensions_v1_service_reference import ApiextensionsV1ServiceReference
98
+ from kubernetes.client.models.apiextensions_v1_webhook_client_config import ApiextensionsV1WebhookClientConfig
99
+ from kubernetes.client.models.apiregistration_v1_service_reference import ApiregistrationV1ServiceReference
100
+ from kubernetes.client.models.authentication_v1_token_request import AuthenticationV1TokenRequest
101
+ from kubernetes.client.models.core_v1_endpoint_port import CoreV1EndpointPort
102
+ from kubernetes.client.models.core_v1_event import CoreV1Event
103
+ from kubernetes.client.models.core_v1_event_list import CoreV1EventList
104
+ from kubernetes.client.models.core_v1_event_series import CoreV1EventSeries
105
+ from kubernetes.client.models.core_v1_resource_claim import CoreV1ResourceClaim
106
+ from kubernetes.client.models.discovery_v1_endpoint_port import DiscoveryV1EndpointPort
107
+ from kubernetes.client.models.events_v1_event import EventsV1Event
108
+ from kubernetes.client.models.events_v1_event_list import EventsV1EventList
109
+ from kubernetes.client.models.events_v1_event_series import EventsV1EventSeries
110
+ from kubernetes.client.models.flowcontrol_v1_subject import FlowcontrolV1Subject
111
+ from kubernetes.client.models.rbac_v1_subject import RbacV1Subject
112
+ from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim
113
+ from kubernetes.client.models.storage_v1_token_request import StorageV1TokenRequest
114
+ from kubernetes.client.models.v1_api_group import V1APIGroup
115
+ from kubernetes.client.models.v1_api_group_list import V1APIGroupList
116
+ from kubernetes.client.models.v1_api_resource import V1APIResource
117
+ from kubernetes.client.models.v1_api_resource_list import V1APIResourceList
118
+ from kubernetes.client.models.v1_api_service import V1APIService
119
+ from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition
120
+ from kubernetes.client.models.v1_api_service_list import V1APIServiceList
121
+ from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec
122
+ from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus
123
+ from kubernetes.client.models.v1_api_versions import V1APIVersions
124
+ from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource
125
+ from kubernetes.client.models.v1_affinity import V1Affinity
126
+ from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule
127
+ from kubernetes.client.models.v1_allocated_device_status import V1AllocatedDeviceStatus
128
+ from kubernetes.client.models.v1_allocation_result import V1AllocationResult
129
+ from kubernetes.client.models.v1_app_armor_profile import V1AppArmorProfile
130
+ from kubernetes.client.models.v1_attached_volume import V1AttachedVolume
131
+ from kubernetes.client.models.v1_audit_annotation import V1AuditAnnotation
132
+ from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource
133
+ from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource
134
+ from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource
135
+ from kubernetes.client.models.v1_binding import V1Binding
136
+ from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference
137
+ from kubernetes.client.models.v1_cel_device_selector import V1CELDeviceSelector
138
+ from kubernetes.client.models.v1_csi_driver import V1CSIDriver
139
+ from kubernetes.client.models.v1_csi_driver_list import V1CSIDriverList
140
+ from kubernetes.client.models.v1_csi_driver_spec import V1CSIDriverSpec
141
+ from kubernetes.client.models.v1_csi_node import V1CSINode
142
+ from kubernetes.client.models.v1_csi_node_driver import V1CSINodeDriver
143
+ from kubernetes.client.models.v1_csi_node_list import V1CSINodeList
144
+ from kubernetes.client.models.v1_csi_node_spec import V1CSINodeSpec
145
+ from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource
146
+ from kubernetes.client.models.v1_csi_storage_capacity import V1CSIStorageCapacity
147
+ from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList
148
+ from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource
149
+ from kubernetes.client.models.v1_capabilities import V1Capabilities
150
+ from kubernetes.client.models.v1_capacity_request_policy import V1CapacityRequestPolicy
151
+ from kubernetes.client.models.v1_capacity_request_policy_range import V1CapacityRequestPolicyRange
152
+ from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements
153
+ from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource
154
+ from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource
155
+ from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest
156
+ from kubernetes.client.models.v1_certificate_signing_request_condition import V1CertificateSigningRequestCondition
157
+ from kubernetes.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList
158
+ from kubernetes.client.models.v1_certificate_signing_request_spec import V1CertificateSigningRequestSpec
159
+ from kubernetes.client.models.v1_certificate_signing_request_status import V1CertificateSigningRequestStatus
160
+ from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource
161
+ from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource
162
+ from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig
163
+ from kubernetes.client.models.v1_cluster_role import V1ClusterRole
164
+ from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding
165
+ from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList
166
+ from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList
167
+ from kubernetes.client.models.v1_cluster_trust_bundle_projection import V1ClusterTrustBundleProjection
168
+ from kubernetes.client.models.v1_component_condition import V1ComponentCondition
169
+ from kubernetes.client.models.v1_component_status import V1ComponentStatus
170
+ from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList
171
+ from kubernetes.client.models.v1_condition import V1Condition
172
+ from kubernetes.client.models.v1_config_map import V1ConfigMap
173
+ from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource
174
+ from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector
175
+ from kubernetes.client.models.v1_config_map_list import V1ConfigMapList
176
+ from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource
177
+ from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection
178
+ from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource
179
+ from kubernetes.client.models.v1_container import V1Container
180
+ from kubernetes.client.models.v1_container_extended_resource_request import V1ContainerExtendedResourceRequest
181
+ from kubernetes.client.models.v1_container_image import V1ContainerImage
182
+ from kubernetes.client.models.v1_container_port import V1ContainerPort
183
+ from kubernetes.client.models.v1_container_resize_policy import V1ContainerResizePolicy
184
+ from kubernetes.client.models.v1_container_restart_rule import V1ContainerRestartRule
185
+ from kubernetes.client.models.v1_container_restart_rule_on_exit_codes import V1ContainerRestartRuleOnExitCodes
186
+ from kubernetes.client.models.v1_container_state import V1ContainerState
187
+ from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning
188
+ from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated
189
+ from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting
190
+ from kubernetes.client.models.v1_container_status import V1ContainerStatus
191
+ from kubernetes.client.models.v1_container_user import V1ContainerUser
192
+ from kubernetes.client.models.v1_controller_revision import V1ControllerRevision
193
+ from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList
194
+ from kubernetes.client.models.v1_counter import V1Counter
195
+ from kubernetes.client.models.v1_counter_set import V1CounterSet
196
+ from kubernetes.client.models.v1_cron_job import V1CronJob
197
+ from kubernetes.client.models.v1_cron_job_list import V1CronJobList
198
+ from kubernetes.client.models.v1_cron_job_spec import V1CronJobSpec
199
+ from kubernetes.client.models.v1_cron_job_status import V1CronJobStatus
200
+ from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference
201
+ from kubernetes.client.models.v1_custom_resource_column_definition import V1CustomResourceColumnDefinition
202
+ from kubernetes.client.models.v1_custom_resource_conversion import V1CustomResourceConversion
203
+ from kubernetes.client.models.v1_custom_resource_definition import V1CustomResourceDefinition
204
+ from kubernetes.client.models.v1_custom_resource_definition_condition import V1CustomResourceDefinitionCondition
205
+ from kubernetes.client.models.v1_custom_resource_definition_list import V1CustomResourceDefinitionList
206
+ from kubernetes.client.models.v1_custom_resource_definition_names import V1CustomResourceDefinitionNames
207
+ from kubernetes.client.models.v1_custom_resource_definition_spec import V1CustomResourceDefinitionSpec
208
+ from kubernetes.client.models.v1_custom_resource_definition_status import V1CustomResourceDefinitionStatus
209
+ from kubernetes.client.models.v1_custom_resource_definition_version import V1CustomResourceDefinitionVersion
210
+ from kubernetes.client.models.v1_custom_resource_subresource_scale import V1CustomResourceSubresourceScale
211
+ from kubernetes.client.models.v1_custom_resource_subresources import V1CustomResourceSubresources
212
+ from kubernetes.client.models.v1_custom_resource_validation import V1CustomResourceValidation
213
+ from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint
214
+ from kubernetes.client.models.v1_daemon_set import V1DaemonSet
215
+ from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition
216
+ from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList
217
+ from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec
218
+ from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus
219
+ from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy
220
+ from kubernetes.client.models.v1_delete_options import V1DeleteOptions
221
+ from kubernetes.client.models.v1_deployment import V1Deployment
222
+ from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition
223
+ from kubernetes.client.models.v1_deployment_list import V1DeploymentList
224
+ from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec
225
+ from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus
226
+ from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy
227
+ from kubernetes.client.models.v1_device import V1Device
228
+ from kubernetes.client.models.v1_device_allocation_configuration import V1DeviceAllocationConfiguration
229
+ from kubernetes.client.models.v1_device_allocation_result import V1DeviceAllocationResult
230
+ from kubernetes.client.models.v1_device_attribute import V1DeviceAttribute
231
+ from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity
232
+ from kubernetes.client.models.v1_device_claim import V1DeviceClaim
233
+ from kubernetes.client.models.v1_device_claim_configuration import V1DeviceClaimConfiguration
234
+ from kubernetes.client.models.v1_device_class import V1DeviceClass
235
+ from kubernetes.client.models.v1_device_class_configuration import V1DeviceClassConfiguration
236
+ from kubernetes.client.models.v1_device_class_list import V1DeviceClassList
237
+ from kubernetes.client.models.v1_device_class_spec import V1DeviceClassSpec
238
+ from kubernetes.client.models.v1_device_constraint import V1DeviceConstraint
239
+ from kubernetes.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption
240
+ from kubernetes.client.models.v1_device_request import V1DeviceRequest
241
+ from kubernetes.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult
242
+ from kubernetes.client.models.v1_device_selector import V1DeviceSelector
243
+ from kubernetes.client.models.v1_device_sub_request import V1DeviceSubRequest
244
+ from kubernetes.client.models.v1_device_taint import V1DeviceTaint
245
+ from kubernetes.client.models.v1_device_toleration import V1DeviceToleration
246
+ from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection
247
+ from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile
248
+ from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource
249
+ from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource
250
+ from kubernetes.client.models.v1_endpoint import V1Endpoint
251
+ from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress
252
+ from kubernetes.client.models.v1_endpoint_conditions import V1EndpointConditions
253
+ from kubernetes.client.models.v1_endpoint_hints import V1EndpointHints
254
+ from kubernetes.client.models.v1_endpoint_slice import V1EndpointSlice
255
+ from kubernetes.client.models.v1_endpoint_slice_list import V1EndpointSliceList
256
+ from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset
257
+ from kubernetes.client.models.v1_endpoints import V1Endpoints
258
+ from kubernetes.client.models.v1_endpoints_list import V1EndpointsList
259
+ from kubernetes.client.models.v1_env_from_source import V1EnvFromSource
260
+ from kubernetes.client.models.v1_env_var import V1EnvVar
261
+ from kubernetes.client.models.v1_env_var_source import V1EnvVarSource
262
+ from kubernetes.client.models.v1_ephemeral_container import V1EphemeralContainer
263
+ from kubernetes.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource
264
+ from kubernetes.client.models.v1_event_source import V1EventSource
265
+ from kubernetes.client.models.v1_eviction import V1Eviction
266
+ from kubernetes.client.models.v1_exact_device_request import V1ExactDeviceRequest
267
+ from kubernetes.client.models.v1_exec_action import V1ExecAction
268
+ from kubernetes.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration
269
+ from kubernetes.client.models.v1_expression_warning import V1ExpressionWarning
270
+ from kubernetes.client.models.v1_external_documentation import V1ExternalDocumentation
271
+ from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource
272
+ from kubernetes.client.models.v1_field_selector_attributes import V1FieldSelectorAttributes
273
+ from kubernetes.client.models.v1_field_selector_requirement import V1FieldSelectorRequirement
274
+ from kubernetes.client.models.v1_file_key_selector import V1FileKeySelector
275
+ from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource
276
+ from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource
277
+ from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource
278
+ from kubernetes.client.models.v1_flow_distinguisher_method import V1FlowDistinguisherMethod
279
+ from kubernetes.client.models.v1_flow_schema import V1FlowSchema
280
+ from kubernetes.client.models.v1_flow_schema_condition import V1FlowSchemaCondition
281
+ from kubernetes.client.models.v1_flow_schema_list import V1FlowSchemaList
282
+ from kubernetes.client.models.v1_flow_schema_spec import V1FlowSchemaSpec
283
+ from kubernetes.client.models.v1_flow_schema_status import V1FlowSchemaStatus
284
+ from kubernetes.client.models.v1_for_node import V1ForNode
285
+ from kubernetes.client.models.v1_for_zone import V1ForZone
286
+ from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource
287
+ from kubernetes.client.models.v1_grpc_action import V1GRPCAction
288
+ from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource
289
+ from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource
290
+ from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource
291
+ from kubernetes.client.models.v1_group_resource import V1GroupResource
292
+ from kubernetes.client.models.v1_group_subject import V1GroupSubject
293
+ from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery
294
+ from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction
295
+ from kubernetes.client.models.v1_http_header import V1HTTPHeader
296
+ from kubernetes.client.models.v1_http_ingress_path import V1HTTPIngressPath
297
+ from kubernetes.client.models.v1_http_ingress_rule_value import V1HTTPIngressRuleValue
298
+ from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler
299
+ from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList
300
+ from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec
301
+ from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus
302
+ from kubernetes.client.models.v1_host_alias import V1HostAlias
303
+ from kubernetes.client.models.v1_host_ip import V1HostIP
304
+ from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource
305
+ from kubernetes.client.models.v1_ip_address import V1IPAddress
306
+ from kubernetes.client.models.v1_ip_address_list import V1IPAddressList
307
+ from kubernetes.client.models.v1_ip_address_spec import V1IPAddressSpec
308
+ from kubernetes.client.models.v1_ip_block import V1IPBlock
309
+ from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource
310
+ from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource
311
+ from kubernetes.client.models.v1_image_volume_source import V1ImageVolumeSource
312
+ from kubernetes.client.models.v1_ingress import V1Ingress
313
+ from kubernetes.client.models.v1_ingress_backend import V1IngressBackend
314
+ from kubernetes.client.models.v1_ingress_class import V1IngressClass
315
+ from kubernetes.client.models.v1_ingress_class_list import V1IngressClassList
316
+ from kubernetes.client.models.v1_ingress_class_parameters_reference import V1IngressClassParametersReference
317
+ from kubernetes.client.models.v1_ingress_class_spec import V1IngressClassSpec
318
+ from kubernetes.client.models.v1_ingress_list import V1IngressList
319
+ from kubernetes.client.models.v1_ingress_load_balancer_ingress import V1IngressLoadBalancerIngress
320
+ from kubernetes.client.models.v1_ingress_load_balancer_status import V1IngressLoadBalancerStatus
321
+ from kubernetes.client.models.v1_ingress_port_status import V1IngressPortStatus
322
+ from kubernetes.client.models.v1_ingress_rule import V1IngressRule
323
+ from kubernetes.client.models.v1_ingress_service_backend import V1IngressServiceBackend
324
+ from kubernetes.client.models.v1_ingress_spec import V1IngressSpec
325
+ from kubernetes.client.models.v1_ingress_status import V1IngressStatus
326
+ from kubernetes.client.models.v1_ingress_tls import V1IngressTLS
327
+ from kubernetes.client.models.v1_json_schema_props import V1JSONSchemaProps
328
+ from kubernetes.client.models.v1_job import V1Job
329
+ from kubernetes.client.models.v1_job_condition import V1JobCondition
330
+ from kubernetes.client.models.v1_job_list import V1JobList
331
+ from kubernetes.client.models.v1_job_spec import V1JobSpec
332
+ from kubernetes.client.models.v1_job_status import V1JobStatus
333
+ from kubernetes.client.models.v1_job_template_spec import V1JobTemplateSpec
334
+ from kubernetes.client.models.v1_key_to_path import V1KeyToPath
335
+ from kubernetes.client.models.v1_label_selector import V1LabelSelector
336
+ from kubernetes.client.models.v1_label_selector_attributes import V1LabelSelectorAttributes
337
+ from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement
338
+ from kubernetes.client.models.v1_lease import V1Lease
339
+ from kubernetes.client.models.v1_lease_list import V1LeaseList
340
+ from kubernetes.client.models.v1_lease_spec import V1LeaseSpec
341
+ from kubernetes.client.models.v1_lifecycle import V1Lifecycle
342
+ from kubernetes.client.models.v1_lifecycle_handler import V1LifecycleHandler
343
+ from kubernetes.client.models.v1_limit_range import V1LimitRange
344
+ from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem
345
+ from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList
346
+ from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec
347
+ from kubernetes.client.models.v1_limit_response import V1LimitResponse
348
+ from kubernetes.client.models.v1_limited_priority_level_configuration import V1LimitedPriorityLevelConfiguration
349
+ from kubernetes.client.models.v1_linux_container_user import V1LinuxContainerUser
350
+ from kubernetes.client.models.v1_list_meta import V1ListMeta
351
+ from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress
352
+ from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus
353
+ from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference
354
+ from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview
355
+ from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource
356
+ from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry
357
+ from kubernetes.client.models.v1_match_condition import V1MatchCondition
358
+ from kubernetes.client.models.v1_match_resources import V1MatchResources
359
+ from kubernetes.client.models.v1_modify_volume_status import V1ModifyVolumeStatus
360
+ from kubernetes.client.models.v1_mutating_webhook import V1MutatingWebhook
361
+ from kubernetes.client.models.v1_mutating_webhook_configuration import V1MutatingWebhookConfiguration
362
+ from kubernetes.client.models.v1_mutating_webhook_configuration_list import V1MutatingWebhookConfigurationList
363
+ from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource
364
+ from kubernetes.client.models.v1_named_rule_with_operations import V1NamedRuleWithOperations
365
+ from kubernetes.client.models.v1_namespace import V1Namespace
366
+ from kubernetes.client.models.v1_namespace_condition import V1NamespaceCondition
367
+ from kubernetes.client.models.v1_namespace_list import V1NamespaceList
368
+ from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec
369
+ from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus
370
+ from kubernetes.client.models.v1_network_device_data import V1NetworkDeviceData
371
+ from kubernetes.client.models.v1_network_policy import V1NetworkPolicy
372
+ from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule
373
+ from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule
374
+ from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList
375
+ from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer
376
+ from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort
377
+ from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec
378
+ from kubernetes.client.models.v1_node import V1Node
379
+ from kubernetes.client.models.v1_node_address import V1NodeAddress
380
+ from kubernetes.client.models.v1_node_affinity import V1NodeAffinity
381
+ from kubernetes.client.models.v1_node_condition import V1NodeCondition
382
+ from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource
383
+ from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus
384
+ from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints
385
+ from kubernetes.client.models.v1_node_features import V1NodeFeatures
386
+ from kubernetes.client.models.v1_node_list import V1NodeList
387
+ from kubernetes.client.models.v1_node_runtime_handler import V1NodeRuntimeHandler
388
+ from kubernetes.client.models.v1_node_runtime_handler_features import V1NodeRuntimeHandlerFeatures
389
+ from kubernetes.client.models.v1_node_selector import V1NodeSelector
390
+ from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement
391
+ from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm
392
+ from kubernetes.client.models.v1_node_spec import V1NodeSpec
393
+ from kubernetes.client.models.v1_node_status import V1NodeStatus
394
+ from kubernetes.client.models.v1_node_swap_status import V1NodeSwapStatus
395
+ from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo
396
+ from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes
397
+ from kubernetes.client.models.v1_non_resource_policy_rule import V1NonResourcePolicyRule
398
+ from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule
399
+ from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector
400
+ from kubernetes.client.models.v1_object_meta import V1ObjectMeta
401
+ from kubernetes.client.models.v1_object_reference import V1ObjectReference
402
+ from kubernetes.client.models.v1_opaque_device_configuration import V1OpaqueDeviceConfiguration
403
+ from kubernetes.client.models.v1_overhead import V1Overhead
404
+ from kubernetes.client.models.v1_owner_reference import V1OwnerReference
405
+ from kubernetes.client.models.v1_param_kind import V1ParamKind
406
+ from kubernetes.client.models.v1_param_ref import V1ParamRef
407
+ from kubernetes.client.models.v1_parent_reference import V1ParentReference
408
+ from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume
409
+ from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim
410
+ from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition
411
+ from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList
412
+ from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec
413
+ from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus
414
+ from kubernetes.client.models.v1_persistent_volume_claim_template import V1PersistentVolumeClaimTemplate
415
+ from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource
416
+ from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList
417
+ from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec
418
+ from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus
419
+ from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource
420
+ from kubernetes.client.models.v1_pod import V1Pod
421
+ from kubernetes.client.models.v1_pod_affinity import V1PodAffinity
422
+ from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm
423
+ from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity
424
+ from kubernetes.client.models.v1_pod_certificate_projection import V1PodCertificateProjection
425
+ from kubernetes.client.models.v1_pod_condition import V1PodCondition
426
+ from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig
427
+ from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption
428
+ from kubernetes.client.models.v1_pod_disruption_budget import V1PodDisruptionBudget
429
+ from kubernetes.client.models.v1_pod_disruption_budget_list import V1PodDisruptionBudgetList
430
+ from kubernetes.client.models.v1_pod_disruption_budget_spec import V1PodDisruptionBudgetSpec
431
+ from kubernetes.client.models.v1_pod_disruption_budget_status import V1PodDisruptionBudgetStatus
432
+ from kubernetes.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus
433
+ from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy
434
+ from kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement import V1PodFailurePolicyOnExitCodesRequirement
435
+ from kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern import V1PodFailurePolicyOnPodConditionsPattern
436
+ from kubernetes.client.models.v1_pod_failure_policy_rule import V1PodFailurePolicyRule
437
+ from kubernetes.client.models.v1_pod_ip import V1PodIP
438
+ from kubernetes.client.models.v1_pod_list import V1PodList
439
+ from kubernetes.client.models.v1_pod_os import V1PodOS
440
+ from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate
441
+ from kubernetes.client.models.v1_pod_resource_claim import V1PodResourceClaim
442
+ from kubernetes.client.models.v1_pod_resource_claim_status import V1PodResourceClaimStatus
443
+ from kubernetes.client.models.v1_pod_scheduling_gate import V1PodSchedulingGate
444
+ from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext
445
+ from kubernetes.client.models.v1_pod_spec import V1PodSpec
446
+ from kubernetes.client.models.v1_pod_status import V1PodStatus
447
+ from kubernetes.client.models.v1_pod_template import V1PodTemplate
448
+ from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList
449
+ from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec
450
+ from kubernetes.client.models.v1_policy_rule import V1PolicyRule
451
+ from kubernetes.client.models.v1_policy_rules_with_subjects import V1PolicyRulesWithSubjects
452
+ from kubernetes.client.models.v1_port_status import V1PortStatus
453
+ from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource
454
+ from kubernetes.client.models.v1_preconditions import V1Preconditions
455
+ from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm
456
+ from kubernetes.client.models.v1_priority_class import V1PriorityClass
457
+ from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList
458
+ from kubernetes.client.models.v1_priority_level_configuration import V1PriorityLevelConfiguration
459
+ from kubernetes.client.models.v1_priority_level_configuration_condition import V1PriorityLevelConfigurationCondition
460
+ from kubernetes.client.models.v1_priority_level_configuration_list import V1PriorityLevelConfigurationList
461
+ from kubernetes.client.models.v1_priority_level_configuration_reference import V1PriorityLevelConfigurationReference
462
+ from kubernetes.client.models.v1_priority_level_configuration_spec import V1PriorityLevelConfigurationSpec
463
+ from kubernetes.client.models.v1_priority_level_configuration_status import V1PriorityLevelConfigurationStatus
464
+ from kubernetes.client.models.v1_probe import V1Probe
465
+ from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource
466
+ from kubernetes.client.models.v1_queuing_configuration import V1QueuingConfiguration
467
+ from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource
468
+ from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource
469
+ from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource
470
+ from kubernetes.client.models.v1_replica_set import V1ReplicaSet
471
+ from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition
472
+ from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList
473
+ from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec
474
+ from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus
475
+ from kubernetes.client.models.v1_replication_controller import V1ReplicationController
476
+ from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition
477
+ from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList
478
+ from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec
479
+ from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus
480
+ from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes
481
+ from kubernetes.client.models.v1_resource_claim_consumer_reference import V1ResourceClaimConsumerReference
482
+ from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList
483
+ from kubernetes.client.models.v1_resource_claim_spec import V1ResourceClaimSpec
484
+ from kubernetes.client.models.v1_resource_claim_status import V1ResourceClaimStatus
485
+ from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate
486
+ from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList
487
+ from kubernetes.client.models.v1_resource_claim_template_spec import V1ResourceClaimTemplateSpec
488
+ from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector
489
+ from kubernetes.client.models.v1_resource_health import V1ResourceHealth
490
+ from kubernetes.client.models.v1_resource_policy_rule import V1ResourcePolicyRule
491
+ from kubernetes.client.models.v1_resource_pool import V1ResourcePool
492
+ from kubernetes.client.models.v1_resource_quota import V1ResourceQuota
493
+ from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList
494
+ from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec
495
+ from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus
496
+ from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements
497
+ from kubernetes.client.models.v1_resource_rule import V1ResourceRule
498
+ from kubernetes.client.models.v1_resource_slice import V1ResourceSlice
499
+ from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList
500
+ from kubernetes.client.models.v1_resource_slice_spec import V1ResourceSliceSpec
501
+ from kubernetes.client.models.v1_resource_status import V1ResourceStatus
502
+ from kubernetes.client.models.v1_role import V1Role
503
+ from kubernetes.client.models.v1_role_binding import V1RoleBinding
504
+ from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList
505
+ from kubernetes.client.models.v1_role_list import V1RoleList
506
+ from kubernetes.client.models.v1_role_ref import V1RoleRef
507
+ from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet
508
+ from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment
509
+ from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy
510
+ from kubernetes.client.models.v1_rule_with_operations import V1RuleWithOperations
511
+ from kubernetes.client.models.v1_runtime_class import V1RuntimeClass
512
+ from kubernetes.client.models.v1_runtime_class_list import V1RuntimeClassList
513
+ from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions
514
+ from kubernetes.client.models.v1_scale import V1Scale
515
+ from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource
516
+ from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource
517
+ from kubernetes.client.models.v1_scale_spec import V1ScaleSpec
518
+ from kubernetes.client.models.v1_scale_status import V1ScaleStatus
519
+ from kubernetes.client.models.v1_scheduling import V1Scheduling
520
+ from kubernetes.client.models.v1_scope_selector import V1ScopeSelector
521
+ from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement
522
+ from kubernetes.client.models.v1_seccomp_profile import V1SeccompProfile
523
+ from kubernetes.client.models.v1_secret import V1Secret
524
+ from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource
525
+ from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector
526
+ from kubernetes.client.models.v1_secret_list import V1SecretList
527
+ from kubernetes.client.models.v1_secret_projection import V1SecretProjection
528
+ from kubernetes.client.models.v1_secret_reference import V1SecretReference
529
+ from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource
530
+ from kubernetes.client.models.v1_security_context import V1SecurityContext
531
+ from kubernetes.client.models.v1_selectable_field import V1SelectableField
532
+ from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview
533
+ from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec
534
+ from kubernetes.client.models.v1_self_subject_review import V1SelfSubjectReview
535
+ from kubernetes.client.models.v1_self_subject_review_status import V1SelfSubjectReviewStatus
536
+ from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview
537
+ from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec
538
+ from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR
539
+ from kubernetes.client.models.v1_service import V1Service
540
+ from kubernetes.client.models.v1_service_account import V1ServiceAccount
541
+ from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList
542
+ from kubernetes.client.models.v1_service_account_subject import V1ServiceAccountSubject
543
+ from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection
544
+ from kubernetes.client.models.v1_service_backend_port import V1ServiceBackendPort
545
+ from kubernetes.client.models.v1_service_cidr import V1ServiceCIDR
546
+ from kubernetes.client.models.v1_service_cidr_list import V1ServiceCIDRList
547
+ from kubernetes.client.models.v1_service_cidr_spec import V1ServiceCIDRSpec
548
+ from kubernetes.client.models.v1_service_cidr_status import V1ServiceCIDRStatus
549
+ from kubernetes.client.models.v1_service_list import V1ServiceList
550
+ from kubernetes.client.models.v1_service_port import V1ServicePort
551
+ from kubernetes.client.models.v1_service_spec import V1ServiceSpec
552
+ from kubernetes.client.models.v1_service_status import V1ServiceStatus
553
+ from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig
554
+ from kubernetes.client.models.v1_sleep_action import V1SleepAction
555
+ from kubernetes.client.models.v1_stateful_set import V1StatefulSet
556
+ from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition
557
+ from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList
558
+ from kubernetes.client.models.v1_stateful_set_ordinals import V1StatefulSetOrdinals
559
+ from kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy import V1StatefulSetPersistentVolumeClaimRetentionPolicy
560
+ from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec
561
+ from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus
562
+ from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy
563
+ from kubernetes.client.models.v1_status import V1Status
564
+ from kubernetes.client.models.v1_status_cause import V1StatusCause
565
+ from kubernetes.client.models.v1_status_details import V1StatusDetails
566
+ from kubernetes.client.models.v1_storage_class import V1StorageClass
567
+ from kubernetes.client.models.v1_storage_class_list import V1StorageClassList
568
+ from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource
569
+ from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource
570
+ from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview
571
+ from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec
572
+ from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus
573
+ from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus
574
+ from kubernetes.client.models.v1_success_policy import V1SuccessPolicy
575
+ from kubernetes.client.models.v1_success_policy_rule import V1SuccessPolicyRule
576
+ from kubernetes.client.models.v1_sysctl import V1Sysctl
577
+ from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction
578
+ from kubernetes.client.models.v1_taint import V1Taint
579
+ from kubernetes.client.models.v1_token_request_spec import V1TokenRequestSpec
580
+ from kubernetes.client.models.v1_token_request_status import V1TokenRequestStatus
581
+ from kubernetes.client.models.v1_token_review import V1TokenReview
582
+ from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec
583
+ from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus
584
+ from kubernetes.client.models.v1_toleration import V1Toleration
585
+ from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement
586
+ from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm
587
+ from kubernetes.client.models.v1_topology_spread_constraint import V1TopologySpreadConstraint
588
+ from kubernetes.client.models.v1_type_checking import V1TypeChecking
589
+ from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference
590
+ from kubernetes.client.models.v1_typed_object_reference import V1TypedObjectReference
591
+ from kubernetes.client.models.v1_uncounted_terminated_pods import V1UncountedTerminatedPods
592
+ from kubernetes.client.models.v1_user_info import V1UserInfo
593
+ from kubernetes.client.models.v1_user_subject import V1UserSubject
594
+ from kubernetes.client.models.v1_validating_admission_policy import V1ValidatingAdmissionPolicy
595
+ from kubernetes.client.models.v1_validating_admission_policy_binding import V1ValidatingAdmissionPolicyBinding
596
+ from kubernetes.client.models.v1_validating_admission_policy_binding_list import V1ValidatingAdmissionPolicyBindingList
597
+ from kubernetes.client.models.v1_validating_admission_policy_binding_spec import V1ValidatingAdmissionPolicyBindingSpec
598
+ from kubernetes.client.models.v1_validating_admission_policy_list import V1ValidatingAdmissionPolicyList
599
+ from kubernetes.client.models.v1_validating_admission_policy_spec import V1ValidatingAdmissionPolicySpec
600
+ from kubernetes.client.models.v1_validating_admission_policy_status import V1ValidatingAdmissionPolicyStatus
601
+ from kubernetes.client.models.v1_validating_webhook import V1ValidatingWebhook
602
+ from kubernetes.client.models.v1_validating_webhook_configuration import V1ValidatingWebhookConfiguration
603
+ from kubernetes.client.models.v1_validating_webhook_configuration_list import V1ValidatingWebhookConfigurationList
604
+ from kubernetes.client.models.v1_validation import V1Validation
605
+ from kubernetes.client.models.v1_validation_rule import V1ValidationRule
606
+ from kubernetes.client.models.v1_variable import V1Variable
607
+ from kubernetes.client.models.v1_volume import V1Volume
608
+ from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment
609
+ from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList
610
+ from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource
611
+ from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec
612
+ from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus
613
+ from kubernetes.client.models.v1_volume_attributes_class import V1VolumeAttributesClass
614
+ from kubernetes.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList
615
+ from kubernetes.client.models.v1_volume_device import V1VolumeDevice
616
+ from kubernetes.client.models.v1_volume_error import V1VolumeError
617
+ from kubernetes.client.models.v1_volume_mount import V1VolumeMount
618
+ from kubernetes.client.models.v1_volume_mount_status import V1VolumeMountStatus
619
+ from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity
620
+ from kubernetes.client.models.v1_volume_node_resources import V1VolumeNodeResources
621
+ from kubernetes.client.models.v1_volume_projection import V1VolumeProjection
622
+ from kubernetes.client.models.v1_volume_resource_requirements import V1VolumeResourceRequirements
623
+ from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource
624
+ from kubernetes.client.models.v1_watch_event import V1WatchEvent
625
+ from kubernetes.client.models.v1_webhook_conversion import V1WebhookConversion
626
+ from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm
627
+ from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions
628
+ from kubernetes.client.models.v1_workload_reference import V1WorkloadReference
629
+ from kubernetes.client.models.v1alpha1_apply_configuration import V1alpha1ApplyConfiguration
630
+ from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle
631
+ from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList
632
+ from kubernetes.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec
633
+ from kubernetes.client.models.v1alpha1_gang_scheduling_policy import V1alpha1GangSchedulingPolicy
634
+ from kubernetes.client.models.v1alpha1_json_patch import V1alpha1JSONPatch
635
+ from kubernetes.client.models.v1alpha1_match_condition import V1alpha1MatchCondition
636
+ from kubernetes.client.models.v1alpha1_match_resources import V1alpha1MatchResources
637
+ from kubernetes.client.models.v1alpha1_mutating_admission_policy import V1alpha1MutatingAdmissionPolicy
638
+ from kubernetes.client.models.v1alpha1_mutating_admission_policy_binding import V1alpha1MutatingAdmissionPolicyBinding
639
+ from kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list import V1alpha1MutatingAdmissionPolicyBindingList
640
+ from kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec import V1alpha1MutatingAdmissionPolicyBindingSpec
641
+ from kubernetes.client.models.v1alpha1_mutating_admission_policy_list import V1alpha1MutatingAdmissionPolicyList
642
+ from kubernetes.client.models.v1alpha1_mutating_admission_policy_spec import V1alpha1MutatingAdmissionPolicySpec
643
+ from kubernetes.client.models.v1alpha1_mutation import V1alpha1Mutation
644
+ from kubernetes.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations
645
+ from kubernetes.client.models.v1alpha1_param_kind import V1alpha1ParamKind
646
+ from kubernetes.client.models.v1alpha1_param_ref import V1alpha1ParamRef
647
+ from kubernetes.client.models.v1alpha1_pod_group import V1alpha1PodGroup
648
+ from kubernetes.client.models.v1alpha1_pod_group_policy import V1alpha1PodGroupPolicy
649
+ from kubernetes.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion
650
+ from kubernetes.client.models.v1alpha1_storage_version import V1alpha1StorageVersion
651
+ from kubernetes.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition
652
+ from kubernetes.client.models.v1alpha1_storage_version_list import V1alpha1StorageVersionList
653
+ from kubernetes.client.models.v1alpha1_storage_version_status import V1alpha1StorageVersionStatus
654
+ from kubernetes.client.models.v1alpha1_typed_local_object_reference import V1alpha1TypedLocalObjectReference
655
+ from kubernetes.client.models.v1alpha1_variable import V1alpha1Variable
656
+ from kubernetes.client.models.v1alpha1_workload import V1alpha1Workload
657
+ from kubernetes.client.models.v1alpha1_workload_list import V1alpha1WorkloadList
658
+ from kubernetes.client.models.v1alpha1_workload_spec import V1alpha1WorkloadSpec
659
+ from kubernetes.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate
660
+ from kubernetes.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList
661
+ from kubernetes.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec
662
+ from kubernetes.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint
663
+ from kubernetes.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule
664
+ from kubernetes.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList
665
+ from kubernetes.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec
666
+ from kubernetes.client.models.v1alpha3_device_taint_rule_status import V1alpha3DeviceTaintRuleStatus
667
+ from kubernetes.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector
668
+ from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus
669
+ from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult
670
+ from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration
671
+ from kubernetes.client.models.v1beta1_basic_device import V1beta1BasicDevice
672
+ from kubernetes.client.models.v1beta1_cel_device_selector import V1beta1CELDeviceSelector
673
+ from kubernetes.client.models.v1beta1_capacity_request_policy import V1beta1CapacityRequestPolicy
674
+ from kubernetes.client.models.v1beta1_capacity_request_policy_range import V1beta1CapacityRequestPolicyRange
675
+ from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements
676
+ from kubernetes.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle
677
+ from kubernetes.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList
678
+ from kubernetes.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec
679
+ from kubernetes.client.models.v1beta1_counter import V1beta1Counter
680
+ from kubernetes.client.models.v1beta1_counter_set import V1beta1CounterSet
681
+ from kubernetes.client.models.v1beta1_device import V1beta1Device
682
+ from kubernetes.client.models.v1beta1_device_allocation_configuration import V1beta1DeviceAllocationConfiguration
683
+ from kubernetes.client.models.v1beta1_device_allocation_result import V1beta1DeviceAllocationResult
684
+ from kubernetes.client.models.v1beta1_device_attribute import V1beta1DeviceAttribute
685
+ from kubernetes.client.models.v1beta1_device_capacity import V1beta1DeviceCapacity
686
+ from kubernetes.client.models.v1beta1_device_claim import V1beta1DeviceClaim
687
+ from kubernetes.client.models.v1beta1_device_claim_configuration import V1beta1DeviceClaimConfiguration
688
+ from kubernetes.client.models.v1beta1_device_class import V1beta1DeviceClass
689
+ from kubernetes.client.models.v1beta1_device_class_configuration import V1beta1DeviceClassConfiguration
690
+ from kubernetes.client.models.v1beta1_device_class_list import V1beta1DeviceClassList
691
+ from kubernetes.client.models.v1beta1_device_class_spec import V1beta1DeviceClassSpec
692
+ from kubernetes.client.models.v1beta1_device_constraint import V1beta1DeviceConstraint
693
+ from kubernetes.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption
694
+ from kubernetes.client.models.v1beta1_device_request import V1beta1DeviceRequest
695
+ from kubernetes.client.models.v1beta1_device_request_allocation_result import V1beta1DeviceRequestAllocationResult
696
+ from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelector
697
+ from kubernetes.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest
698
+ from kubernetes.client.models.v1beta1_device_taint import V1beta1DeviceTaint
699
+ from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration
700
+ from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress
701
+ from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList
702
+ from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec
703
+ from kubernetes.client.models.v1beta1_json_patch import V1beta1JSONPatch
704
+ from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate
705
+ from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList
706
+ from kubernetes.client.models.v1beta1_lease_candidate_spec import V1beta1LeaseCandidateSpec
707
+ from kubernetes.client.models.v1beta1_match_condition import V1beta1MatchCondition
708
+ from kubernetes.client.models.v1beta1_match_resources import V1beta1MatchResources
709
+ from kubernetes.client.models.v1beta1_mutating_admission_policy import V1beta1MutatingAdmissionPolicy
710
+ from kubernetes.client.models.v1beta1_mutating_admission_policy_binding import V1beta1MutatingAdmissionPolicyBinding
711
+ from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list import V1beta1MutatingAdmissionPolicyBindingList
712
+ from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec import V1beta1MutatingAdmissionPolicyBindingSpec
713
+ from kubernetes.client.models.v1beta1_mutating_admission_policy_list import V1beta1MutatingAdmissionPolicyList
714
+ from kubernetes.client.models.v1beta1_mutating_admission_policy_spec import V1beta1MutatingAdmissionPolicySpec
715
+ from kubernetes.client.models.v1beta1_mutation import V1beta1Mutation
716
+ from kubernetes.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations
717
+ from kubernetes.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData
718
+ from kubernetes.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration
719
+ from kubernetes.client.models.v1beta1_param_kind import V1beta1ParamKind
720
+ from kubernetes.client.models.v1beta1_param_ref import V1beta1ParamRef
721
+ from kubernetes.client.models.v1beta1_parent_reference import V1beta1ParentReference
722
+ from kubernetes.client.models.v1beta1_pod_certificate_request import V1beta1PodCertificateRequest
723
+ from kubernetes.client.models.v1beta1_pod_certificate_request_list import V1beta1PodCertificateRequestList
724
+ from kubernetes.client.models.v1beta1_pod_certificate_request_spec import V1beta1PodCertificateRequestSpec
725
+ from kubernetes.client.models.v1beta1_pod_certificate_request_status import V1beta1PodCertificateRequestStatus
726
+ from kubernetes.client.models.v1beta1_resource_claim import V1beta1ResourceClaim
727
+ from kubernetes.client.models.v1beta1_resource_claim_consumer_reference import V1beta1ResourceClaimConsumerReference
728
+ from kubernetes.client.models.v1beta1_resource_claim_list import V1beta1ResourceClaimList
729
+ from kubernetes.client.models.v1beta1_resource_claim_spec import V1beta1ResourceClaimSpec
730
+ from kubernetes.client.models.v1beta1_resource_claim_status import V1beta1ResourceClaimStatus
731
+ from kubernetes.client.models.v1beta1_resource_claim_template import V1beta1ResourceClaimTemplate
732
+ from kubernetes.client.models.v1beta1_resource_claim_template_list import V1beta1ResourceClaimTemplateList
733
+ from kubernetes.client.models.v1beta1_resource_claim_template_spec import V1beta1ResourceClaimTemplateSpec
734
+ from kubernetes.client.models.v1beta1_resource_pool import V1beta1ResourcePool
735
+ from kubernetes.client.models.v1beta1_resource_slice import V1beta1ResourceSlice
736
+ from kubernetes.client.models.v1beta1_resource_slice_list import V1beta1ResourceSliceList
737
+ from kubernetes.client.models.v1beta1_resource_slice_spec import V1beta1ResourceSliceSpec
738
+ from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR
739
+ from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList
740
+ from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec
741
+ from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus
742
+ from kubernetes.client.models.v1beta1_storage_version_migration import V1beta1StorageVersionMigration
743
+ from kubernetes.client.models.v1beta1_storage_version_migration_list import V1beta1StorageVersionMigrationList
744
+ from kubernetes.client.models.v1beta1_storage_version_migration_spec import V1beta1StorageVersionMigrationSpec
745
+ from kubernetes.client.models.v1beta1_storage_version_migration_status import V1beta1StorageVersionMigrationStatus
746
+ from kubernetes.client.models.v1beta1_variable import V1beta1Variable
747
+ from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass
748
+ from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList
749
+ from kubernetes.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus
750
+ from kubernetes.client.models.v1beta2_allocation_result import V1beta2AllocationResult
751
+ from kubernetes.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector
752
+ from kubernetes.client.models.v1beta2_capacity_request_policy import V1beta2CapacityRequestPolicy
753
+ from kubernetes.client.models.v1beta2_capacity_request_policy_range import V1beta2CapacityRequestPolicyRange
754
+ from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements
755
+ from kubernetes.client.models.v1beta2_counter import V1beta2Counter
756
+ from kubernetes.client.models.v1beta2_counter_set import V1beta2CounterSet
757
+ from kubernetes.client.models.v1beta2_device import V1beta2Device
758
+ from kubernetes.client.models.v1beta2_device_allocation_configuration import V1beta2DeviceAllocationConfiguration
759
+ from kubernetes.client.models.v1beta2_device_allocation_result import V1beta2DeviceAllocationResult
760
+ from kubernetes.client.models.v1beta2_device_attribute import V1beta2DeviceAttribute
761
+ from kubernetes.client.models.v1beta2_device_capacity import V1beta2DeviceCapacity
762
+ from kubernetes.client.models.v1beta2_device_claim import V1beta2DeviceClaim
763
+ from kubernetes.client.models.v1beta2_device_claim_configuration import V1beta2DeviceClaimConfiguration
764
+ from kubernetes.client.models.v1beta2_device_class import V1beta2DeviceClass
765
+ from kubernetes.client.models.v1beta2_device_class_configuration import V1beta2DeviceClassConfiguration
766
+ from kubernetes.client.models.v1beta2_device_class_list import V1beta2DeviceClassList
767
+ from kubernetes.client.models.v1beta2_device_class_spec import V1beta2DeviceClassSpec
768
+ from kubernetes.client.models.v1beta2_device_constraint import V1beta2DeviceConstraint
769
+ from kubernetes.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption
770
+ from kubernetes.client.models.v1beta2_device_request import V1beta2DeviceRequest
771
+ from kubernetes.client.models.v1beta2_device_request_allocation_result import V1beta2DeviceRequestAllocationResult
772
+ from kubernetes.client.models.v1beta2_device_selector import V1beta2DeviceSelector
773
+ from kubernetes.client.models.v1beta2_device_sub_request import V1beta2DeviceSubRequest
774
+ from kubernetes.client.models.v1beta2_device_taint import V1beta2DeviceTaint
775
+ from kubernetes.client.models.v1beta2_device_toleration import V1beta2DeviceToleration
776
+ from kubernetes.client.models.v1beta2_exact_device_request import V1beta2ExactDeviceRequest
777
+ from kubernetes.client.models.v1beta2_network_device_data import V1beta2NetworkDeviceData
778
+ from kubernetes.client.models.v1beta2_opaque_device_configuration import V1beta2OpaqueDeviceConfiguration
779
+ from kubernetes.client.models.v1beta2_resource_claim import V1beta2ResourceClaim
780
+ from kubernetes.client.models.v1beta2_resource_claim_consumer_reference import V1beta2ResourceClaimConsumerReference
781
+ from kubernetes.client.models.v1beta2_resource_claim_list import V1beta2ResourceClaimList
782
+ from kubernetes.client.models.v1beta2_resource_claim_spec import V1beta2ResourceClaimSpec
783
+ from kubernetes.client.models.v1beta2_resource_claim_status import V1beta2ResourceClaimStatus
784
+ from kubernetes.client.models.v1beta2_resource_claim_template import V1beta2ResourceClaimTemplate
785
+ from kubernetes.client.models.v1beta2_resource_claim_template_list import V1beta2ResourceClaimTemplateList
786
+ from kubernetes.client.models.v1beta2_resource_claim_template_spec import V1beta2ResourceClaimTemplateSpec
787
+ from kubernetes.client.models.v1beta2_resource_pool import V1beta2ResourcePool
788
+ from kubernetes.client.models.v1beta2_resource_slice import V1beta2ResourceSlice
789
+ from kubernetes.client.models.v1beta2_resource_slice_list import V1beta2ResourceSliceList
790
+ from kubernetes.client.models.v1beta2_resource_slice_spec import V1beta2ResourceSliceSpec
791
+ from kubernetes.client.models.v2_container_resource_metric_source import V2ContainerResourceMetricSource
792
+ from kubernetes.client.models.v2_container_resource_metric_status import V2ContainerResourceMetricStatus
793
+ from kubernetes.client.models.v2_cross_version_object_reference import V2CrossVersionObjectReference
794
+ from kubernetes.client.models.v2_external_metric_source import V2ExternalMetricSource
795
+ from kubernetes.client.models.v2_external_metric_status import V2ExternalMetricStatus
796
+ from kubernetes.client.models.v2_hpa_scaling_policy import V2HPAScalingPolicy
797
+ from kubernetes.client.models.v2_hpa_scaling_rules import V2HPAScalingRules
798
+ from kubernetes.client.models.v2_horizontal_pod_autoscaler import V2HorizontalPodAutoscaler
799
+ from kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior import V2HorizontalPodAutoscalerBehavior
800
+ from kubernetes.client.models.v2_horizontal_pod_autoscaler_condition import V2HorizontalPodAutoscalerCondition
801
+ from kubernetes.client.models.v2_horizontal_pod_autoscaler_list import V2HorizontalPodAutoscalerList
802
+ from kubernetes.client.models.v2_horizontal_pod_autoscaler_spec import V2HorizontalPodAutoscalerSpec
803
+ from kubernetes.client.models.v2_horizontal_pod_autoscaler_status import V2HorizontalPodAutoscalerStatus
804
+ from kubernetes.client.models.v2_metric_identifier import V2MetricIdentifier
805
+ from kubernetes.client.models.v2_metric_spec import V2MetricSpec
806
+ from kubernetes.client.models.v2_metric_status import V2MetricStatus
807
+ from kubernetes.client.models.v2_metric_target import V2MetricTarget
808
+ from kubernetes.client.models.v2_metric_value_status import V2MetricValueStatus
809
+ from kubernetes.client.models.v2_object_metric_source import V2ObjectMetricSource
810
+ from kubernetes.client.models.v2_object_metric_status import V2ObjectMetricStatus
811
+ from kubernetes.client.models.v2_pods_metric_source import V2PodsMetricSource
812
+ from kubernetes.client.models.v2_pods_metric_status import V2PodsMetricStatus
813
+ from kubernetes.client.models.v2_resource_metric_source import V2ResourceMetricSource
814
+ from kubernetes.client.models.v2_resource_metric_status import V2ResourceMetricStatus
815
+ from kubernetes.client.models.version_info import VersionInfo
816
+
python/user_packages/Python313/site-packages/kubernetes/client/api/__init__.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import absolute_import
2
+
3
+ # flake8: noqa
4
+
5
+ # import apis into api package
6
+ from kubernetes.client.api.well_known_api import WellKnownApi
7
+ from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
8
+ from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api
9
+ from kubernetes.client.api.admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api
10
+ from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api
11
+ from kubernetes.client.api.apiextensions_api import ApiextensionsApi
12
+ from kubernetes.client.api.apiextensions_v1_api import ApiextensionsV1Api
13
+ from kubernetes.client.api.apiregistration_api import ApiregistrationApi
14
+ from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api
15
+ from kubernetes.client.api.apis_api import ApisApi
16
+ from kubernetes.client.api.apps_api import AppsApi
17
+ from kubernetes.client.api.apps_v1_api import AppsV1Api
18
+ from kubernetes.client.api.authentication_api import AuthenticationApi
19
+ from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api
20
+ from kubernetes.client.api.authorization_api import AuthorizationApi
21
+ from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api
22
+ from kubernetes.client.api.autoscaling_api import AutoscalingApi
23
+ from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api
24
+ from kubernetes.client.api.autoscaling_v2_api import AutoscalingV2Api
25
+ from kubernetes.client.api.batch_api import BatchApi
26
+ from kubernetes.client.api.batch_v1_api import BatchV1Api
27
+ from kubernetes.client.api.certificates_api import CertificatesApi
28
+ from kubernetes.client.api.certificates_v1_api import CertificatesV1Api
29
+ from kubernetes.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api
30
+ from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api
31
+ from kubernetes.client.api.coordination_api import CoordinationApi
32
+ from kubernetes.client.api.coordination_v1_api import CoordinationV1Api
33
+ from kubernetes.client.api.coordination_v1alpha2_api import CoordinationV1alpha2Api
34
+ from kubernetes.client.api.coordination_v1beta1_api import CoordinationV1beta1Api
35
+ from kubernetes.client.api.core_api import CoreApi
36
+ from kubernetes.client.api.core_v1_api import CoreV1Api
37
+ from kubernetes.client.api.custom_objects_api import CustomObjectsApi
38
+ from kubernetes.client.api.discovery_api import DiscoveryApi
39
+ from kubernetes.client.api.discovery_v1_api import DiscoveryV1Api
40
+ from kubernetes.client.api.events_api import EventsApi
41
+ from kubernetes.client.api.events_v1_api import EventsV1Api
42
+ from kubernetes.client.api.flowcontrol_apiserver_api import FlowcontrolApiserverApi
43
+ from kubernetes.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api
44
+ from kubernetes.client.api.internal_apiserver_api import InternalApiserverApi
45
+ from kubernetes.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api
46
+ from kubernetes.client.api.logs_api import LogsApi
47
+ from kubernetes.client.api.networking_api import NetworkingApi
48
+ from kubernetes.client.api.networking_v1_api import NetworkingV1Api
49
+ from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api
50
+ from kubernetes.client.api.node_api import NodeApi
51
+ from kubernetes.client.api.node_v1_api import NodeV1Api
52
+ from kubernetes.client.api.openid_api import OpenidApi
53
+ from kubernetes.client.api.policy_api import PolicyApi
54
+ from kubernetes.client.api.policy_v1_api import PolicyV1Api
55
+ from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi
56
+ from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api
57
+ from kubernetes.client.api.resource_api import ResourceApi
58
+ from kubernetes.client.api.resource_v1_api import ResourceV1Api
59
+ from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api
60
+ from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api
61
+ from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api
62
+ from kubernetes.client.api.scheduling_api import SchedulingApi
63
+ from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api
64
+ from kubernetes.client.api.scheduling_v1alpha1_api import SchedulingV1alpha1Api
65
+ from kubernetes.client.api.storage_api import StorageApi
66
+ from kubernetes.client.api.storage_v1_api import StorageV1Api
67
+ from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api
68
+ from kubernetes.client.api.storagemigration_api import StoragemigrationApi
69
+ from kubernetes.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api
70
+ from kubernetes.client.api.version_api import VersionApi
python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AdmissionregistrationApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/admissionregistration.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_v1alpha1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/admissionregistration_v1beta1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/apiextensions_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class ApiextensionsApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/apiextensions.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/apiextensions_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/apiregistration_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class ApiregistrationApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/apiregistration.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/apiregistration_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/apis_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class ApisApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_versions(self, **kwargs): # noqa: E501
40
+ """get_api_versions # noqa: E501
41
+
42
+ get available API versions # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_versions(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroupList
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_versions_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_versions_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_versions # noqa: E501
65
+
66
+ get available API versions # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_versions_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroupList, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_versions" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroupList', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/apps_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AppsApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/apps/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/apps_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/authentication_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AuthenticationApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/authentication.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/authentication_v1_api.py ADDED
@@ -0,0 +1,410 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AuthenticationV1Api(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def create_self_subject_review(self, body, **kwargs): # noqa: E501
40
+ """create_self_subject_review # noqa: E501
41
+
42
+ create a SelfSubjectReview # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.create_self_subject_review(body, async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param V1SelfSubjectReview body: (required)
50
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
51
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
52
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
53
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
54
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
55
+ be returned without reading/decoding response
56
+ data. Default is True.
57
+ :param _request_timeout: timeout setting for this request. If one
58
+ number provided, it will be total request
59
+ timeout. It can also be a pair (tuple) of
60
+ (connection, read) timeouts.
61
+ :return: V1SelfSubjectReview
62
+ If the method is called asynchronously,
63
+ returns the request thread.
64
+ """
65
+ kwargs['_return_http_data_only'] = True
66
+ return self.create_self_subject_review_with_http_info(body, **kwargs) # noqa: E501
67
+
68
+ def create_self_subject_review_with_http_info(self, body, **kwargs): # noqa: E501
69
+ """create_self_subject_review # noqa: E501
70
+
71
+ create a SelfSubjectReview # noqa: E501
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+ >>> thread = api.create_self_subject_review_with_http_info(body, async_req=True)
75
+ >>> result = thread.get()
76
+
77
+ :param async_req bool: execute request asynchronously
78
+ :param V1SelfSubjectReview body: (required)
79
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
80
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
81
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
82
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
83
+ :param _return_http_data_only: response data without head status code
84
+ and headers
85
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
86
+ be returned without reading/decoding response
87
+ data. Default is True.
88
+ :param _request_timeout: timeout setting for this request. If one
89
+ number provided, it will be total request
90
+ timeout. It can also be a pair (tuple) of
91
+ (connection, read) timeouts.
92
+ :return: tuple(V1SelfSubjectReview, status_code(int), headers(HTTPHeaderDict))
93
+ If the method is called asynchronously,
94
+ returns the request thread.
95
+ """
96
+
97
+ local_var_params = locals()
98
+
99
+ all_params = [
100
+ 'body',
101
+ 'dry_run',
102
+ 'field_manager',
103
+ 'field_validation',
104
+ 'pretty'
105
+ ]
106
+ all_params.extend(
107
+ [
108
+ 'async_req',
109
+ '_return_http_data_only',
110
+ '_preload_content',
111
+ '_request_timeout'
112
+ ]
113
+ )
114
+
115
+ for key, val in six.iteritems(local_var_params['kwargs']):
116
+ if key not in all_params:
117
+ raise ApiTypeError(
118
+ "Got an unexpected keyword argument '%s'"
119
+ " to method create_self_subject_review" % key
120
+ )
121
+ local_var_params[key] = val
122
+ del local_var_params['kwargs']
123
+ # verify the required parameter 'body' is set
124
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
125
+ local_var_params['body'] is None): # noqa: E501
126
+ raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_review`") # noqa: E501
127
+
128
+ collection_formats = {}
129
+
130
+ path_params = {}
131
+
132
+ query_params = []
133
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
134
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
135
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
136
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
137
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
138
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
139
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
140
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
141
+
142
+ header_params = {}
143
+
144
+ form_params = []
145
+ local_var_files = {}
146
+
147
+ body_params = None
148
+ if 'body' in local_var_params:
149
+ body_params = local_var_params['body']
150
+ # HTTP header `Accept`
151
+ header_params['Accept'] = self.api_client.select_header_accept(
152
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
153
+
154
+ # Authentication setting
155
+ auth_settings = ['BearerToken'] # noqa: E501
156
+
157
+ return self.api_client.call_api(
158
+ '/apis/authentication.k8s.io/v1/selfsubjectreviews', 'POST',
159
+ path_params,
160
+ query_params,
161
+ header_params,
162
+ body=body_params,
163
+ post_params=form_params,
164
+ files=local_var_files,
165
+ response_type='V1SelfSubjectReview', # noqa: E501
166
+ auth_settings=auth_settings,
167
+ async_req=local_var_params.get('async_req'),
168
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
169
+ _preload_content=local_var_params.get('_preload_content', True),
170
+ _request_timeout=local_var_params.get('_request_timeout'),
171
+ collection_formats=collection_formats)
172
+
173
+ def create_token_review(self, body, **kwargs): # noqa: E501
174
+ """create_token_review # noqa: E501
175
+
176
+ create a TokenReview # noqa: E501
177
+ This method makes a synchronous HTTP request by default. To make an
178
+ asynchronous HTTP request, please pass async_req=True
179
+ >>> thread = api.create_token_review(body, async_req=True)
180
+ >>> result = thread.get()
181
+
182
+ :param async_req bool: execute request asynchronously
183
+ :param V1TokenReview body: (required)
184
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
185
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
186
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
187
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
188
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
189
+ be returned without reading/decoding response
190
+ data. Default is True.
191
+ :param _request_timeout: timeout setting for this request. If one
192
+ number provided, it will be total request
193
+ timeout. It can also be a pair (tuple) of
194
+ (connection, read) timeouts.
195
+ :return: V1TokenReview
196
+ If the method is called asynchronously,
197
+ returns the request thread.
198
+ """
199
+ kwargs['_return_http_data_only'] = True
200
+ return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501
201
+
202
+ def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501
203
+ """create_token_review # noqa: E501
204
+
205
+ create a TokenReview # noqa: E501
206
+ This method makes a synchronous HTTP request by default. To make an
207
+ asynchronous HTTP request, please pass async_req=True
208
+ >>> thread = api.create_token_review_with_http_info(body, async_req=True)
209
+ >>> result = thread.get()
210
+
211
+ :param async_req bool: execute request asynchronously
212
+ :param V1TokenReview body: (required)
213
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
214
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
215
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
216
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
217
+ :param _return_http_data_only: response data without head status code
218
+ and headers
219
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
220
+ be returned without reading/decoding response
221
+ data. Default is True.
222
+ :param _request_timeout: timeout setting for this request. If one
223
+ number provided, it will be total request
224
+ timeout. It can also be a pair (tuple) of
225
+ (connection, read) timeouts.
226
+ :return: tuple(V1TokenReview, status_code(int), headers(HTTPHeaderDict))
227
+ If the method is called asynchronously,
228
+ returns the request thread.
229
+ """
230
+
231
+ local_var_params = locals()
232
+
233
+ all_params = [
234
+ 'body',
235
+ 'dry_run',
236
+ 'field_manager',
237
+ 'field_validation',
238
+ 'pretty'
239
+ ]
240
+ all_params.extend(
241
+ [
242
+ 'async_req',
243
+ '_return_http_data_only',
244
+ '_preload_content',
245
+ '_request_timeout'
246
+ ]
247
+ )
248
+
249
+ for key, val in six.iteritems(local_var_params['kwargs']):
250
+ if key not in all_params:
251
+ raise ApiTypeError(
252
+ "Got an unexpected keyword argument '%s'"
253
+ " to method create_token_review" % key
254
+ )
255
+ local_var_params[key] = val
256
+ del local_var_params['kwargs']
257
+ # verify the required parameter 'body' is set
258
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
259
+ local_var_params['body'] is None): # noqa: E501
260
+ raise ApiValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501
261
+
262
+ collection_formats = {}
263
+
264
+ path_params = {}
265
+
266
+ query_params = []
267
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
268
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
269
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
270
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
271
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
272
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
273
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
274
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
275
+
276
+ header_params = {}
277
+
278
+ form_params = []
279
+ local_var_files = {}
280
+
281
+ body_params = None
282
+ if 'body' in local_var_params:
283
+ body_params = local_var_params['body']
284
+ # HTTP header `Accept`
285
+ header_params['Accept'] = self.api_client.select_header_accept(
286
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
287
+
288
+ # Authentication setting
289
+ auth_settings = ['BearerToken'] # noqa: E501
290
+
291
+ return self.api_client.call_api(
292
+ '/apis/authentication.k8s.io/v1/tokenreviews', 'POST',
293
+ path_params,
294
+ query_params,
295
+ header_params,
296
+ body=body_params,
297
+ post_params=form_params,
298
+ files=local_var_files,
299
+ response_type='V1TokenReview', # noqa: E501
300
+ auth_settings=auth_settings,
301
+ async_req=local_var_params.get('async_req'),
302
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
303
+ _preload_content=local_var_params.get('_preload_content', True),
304
+ _request_timeout=local_var_params.get('_request_timeout'),
305
+ collection_formats=collection_formats)
306
+
307
+ def get_api_resources(self, **kwargs): # noqa: E501
308
+ """get_api_resources # noqa: E501
309
+
310
+ get available resources # noqa: E501
311
+ This method makes a synchronous HTTP request by default. To make an
312
+ asynchronous HTTP request, please pass async_req=True
313
+ >>> thread = api.get_api_resources(async_req=True)
314
+ >>> result = thread.get()
315
+
316
+ :param async_req bool: execute request asynchronously
317
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
318
+ be returned without reading/decoding response
319
+ data. Default is True.
320
+ :param _request_timeout: timeout setting for this request. If one
321
+ number provided, it will be total request
322
+ timeout. It can also be a pair (tuple) of
323
+ (connection, read) timeouts.
324
+ :return: V1APIResourceList
325
+ If the method is called asynchronously,
326
+ returns the request thread.
327
+ """
328
+ kwargs['_return_http_data_only'] = True
329
+ return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
330
+
331
+ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
332
+ """get_api_resources # noqa: E501
333
+
334
+ get available resources # noqa: E501
335
+ This method makes a synchronous HTTP request by default. To make an
336
+ asynchronous HTTP request, please pass async_req=True
337
+ >>> thread = api.get_api_resources_with_http_info(async_req=True)
338
+ >>> result = thread.get()
339
+
340
+ :param async_req bool: execute request asynchronously
341
+ :param _return_http_data_only: response data without head status code
342
+ and headers
343
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
344
+ be returned without reading/decoding response
345
+ data. Default is True.
346
+ :param _request_timeout: timeout setting for this request. If one
347
+ number provided, it will be total request
348
+ timeout. It can also be a pair (tuple) of
349
+ (connection, read) timeouts.
350
+ :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
351
+ If the method is called asynchronously,
352
+ returns the request thread.
353
+ """
354
+
355
+ local_var_params = locals()
356
+
357
+ all_params = [
358
+ ]
359
+ all_params.extend(
360
+ [
361
+ 'async_req',
362
+ '_return_http_data_only',
363
+ '_preload_content',
364
+ '_request_timeout'
365
+ ]
366
+ )
367
+
368
+ for key, val in six.iteritems(local_var_params['kwargs']):
369
+ if key not in all_params:
370
+ raise ApiTypeError(
371
+ "Got an unexpected keyword argument '%s'"
372
+ " to method get_api_resources" % key
373
+ )
374
+ local_var_params[key] = val
375
+ del local_var_params['kwargs']
376
+
377
+ collection_formats = {}
378
+
379
+ path_params = {}
380
+
381
+ query_params = []
382
+
383
+ header_params = {}
384
+
385
+ form_params = []
386
+ local_var_files = {}
387
+
388
+ body_params = None
389
+ # HTTP header `Accept`
390
+ header_params['Accept'] = self.api_client.select_header_accept(
391
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
392
+
393
+ # Authentication setting
394
+ auth_settings = ['BearerToken'] # noqa: E501
395
+
396
+ return self.api_client.call_api(
397
+ '/apis/authentication.k8s.io/v1/', 'GET',
398
+ path_params,
399
+ query_params,
400
+ header_params,
401
+ body=body_params,
402
+ post_params=form_params,
403
+ files=local_var_files,
404
+ response_type='V1APIResourceList', # noqa: E501
405
+ auth_settings=auth_settings,
406
+ async_req=local_var_params.get('async_req'),
407
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
408
+ _preload_content=local_var_params.get('_preload_content', True),
409
+ _request_timeout=local_var_params.get('_request_timeout'),
410
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/authorization_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AuthorizationApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/authorization.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/authorization_v1_api.py ADDED
@@ -0,0 +1,687 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AuthorizationV1Api(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): # noqa: E501
40
+ """create_namespaced_local_subject_access_review # noqa: E501
41
+
42
+ create a LocalSubjectAccessReview # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
50
+ :param V1LocalSubjectAccessReview body: (required)
51
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
52
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
53
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
54
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
55
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
56
+ be returned without reading/decoding response
57
+ data. Default is True.
58
+ :param _request_timeout: timeout setting for this request. If one
59
+ number provided, it will be total request
60
+ timeout. It can also be a pair (tuple) of
61
+ (connection, read) timeouts.
62
+ :return: V1LocalSubjectAccessReview
63
+ If the method is called asynchronously,
64
+ returns the request thread.
65
+ """
66
+ kwargs['_return_http_data_only'] = True
67
+ return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501
68
+
69
+ def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): # noqa: E501
70
+ """create_namespaced_local_subject_access_review # noqa: E501
71
+
72
+ create a LocalSubjectAccessReview # noqa: E501
73
+ This method makes a synchronous HTTP request by default. To make an
74
+ asynchronous HTTP request, please pass async_req=True
75
+ >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, async_req=True)
76
+ >>> result = thread.get()
77
+
78
+ :param async_req bool: execute request asynchronously
79
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
80
+ :param V1LocalSubjectAccessReview body: (required)
81
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
82
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
83
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
84
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
85
+ :param _return_http_data_only: response data without head status code
86
+ and headers
87
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
88
+ be returned without reading/decoding response
89
+ data. Default is True.
90
+ :param _request_timeout: timeout setting for this request. If one
91
+ number provided, it will be total request
92
+ timeout. It can also be a pair (tuple) of
93
+ (connection, read) timeouts.
94
+ :return: tuple(V1LocalSubjectAccessReview, status_code(int), headers(HTTPHeaderDict))
95
+ If the method is called asynchronously,
96
+ returns the request thread.
97
+ """
98
+
99
+ local_var_params = locals()
100
+
101
+ all_params = [
102
+ 'namespace',
103
+ 'body',
104
+ 'dry_run',
105
+ 'field_manager',
106
+ 'field_validation',
107
+ 'pretty'
108
+ ]
109
+ all_params.extend(
110
+ [
111
+ 'async_req',
112
+ '_return_http_data_only',
113
+ '_preload_content',
114
+ '_request_timeout'
115
+ ]
116
+ )
117
+
118
+ for key, val in six.iteritems(local_var_params['kwargs']):
119
+ if key not in all_params:
120
+ raise ApiTypeError(
121
+ "Got an unexpected keyword argument '%s'"
122
+ " to method create_namespaced_local_subject_access_review" % key
123
+ )
124
+ local_var_params[key] = val
125
+ del local_var_params['kwargs']
126
+ # verify the required parameter 'namespace' is set
127
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
128
+ local_var_params['namespace'] is None): # noqa: E501
129
+ raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501
130
+ # verify the required parameter 'body' is set
131
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
132
+ local_var_params['body'] is None): # noqa: E501
133
+ raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501
134
+
135
+ collection_formats = {}
136
+
137
+ path_params = {}
138
+ if 'namespace' in local_var_params:
139
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
140
+
141
+ query_params = []
142
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
143
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
144
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
145
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
146
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
147
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
148
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
149
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
150
+
151
+ header_params = {}
152
+
153
+ form_params = []
154
+ local_var_files = {}
155
+
156
+ body_params = None
157
+ if 'body' in local_var_params:
158
+ body_params = local_var_params['body']
159
+ # HTTP header `Accept`
160
+ header_params['Accept'] = self.api_client.select_header_accept(
161
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
162
+
163
+ # Authentication setting
164
+ auth_settings = ['BearerToken'] # noqa: E501
165
+
166
+ return self.api_client.call_api(
167
+ '/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews', 'POST',
168
+ path_params,
169
+ query_params,
170
+ header_params,
171
+ body=body_params,
172
+ post_params=form_params,
173
+ files=local_var_files,
174
+ response_type='V1LocalSubjectAccessReview', # noqa: E501
175
+ auth_settings=auth_settings,
176
+ async_req=local_var_params.get('async_req'),
177
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
178
+ _preload_content=local_var_params.get('_preload_content', True),
179
+ _request_timeout=local_var_params.get('_request_timeout'),
180
+ collection_formats=collection_formats)
181
+
182
+ def create_self_subject_access_review(self, body, **kwargs): # noqa: E501
183
+ """create_self_subject_access_review # noqa: E501
184
+
185
+ create a SelfSubjectAccessReview # noqa: E501
186
+ This method makes a synchronous HTTP request by default. To make an
187
+ asynchronous HTTP request, please pass async_req=True
188
+ >>> thread = api.create_self_subject_access_review(body, async_req=True)
189
+ >>> result = thread.get()
190
+
191
+ :param async_req bool: execute request asynchronously
192
+ :param V1SelfSubjectAccessReview body: (required)
193
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
194
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
195
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
196
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
197
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
198
+ be returned without reading/decoding response
199
+ data. Default is True.
200
+ :param _request_timeout: timeout setting for this request. If one
201
+ number provided, it will be total request
202
+ timeout. It can also be a pair (tuple) of
203
+ (connection, read) timeouts.
204
+ :return: V1SelfSubjectAccessReview
205
+ If the method is called asynchronously,
206
+ returns the request thread.
207
+ """
208
+ kwargs['_return_http_data_only'] = True
209
+ return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501
210
+
211
+ def create_self_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501
212
+ """create_self_subject_access_review # noqa: E501
213
+
214
+ create a SelfSubjectAccessReview # noqa: E501
215
+ This method makes a synchronous HTTP request by default. To make an
216
+ asynchronous HTTP request, please pass async_req=True
217
+ >>> thread = api.create_self_subject_access_review_with_http_info(body, async_req=True)
218
+ >>> result = thread.get()
219
+
220
+ :param async_req bool: execute request asynchronously
221
+ :param V1SelfSubjectAccessReview body: (required)
222
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
223
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
224
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
225
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
226
+ :param _return_http_data_only: response data without head status code
227
+ and headers
228
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
229
+ be returned without reading/decoding response
230
+ data. Default is True.
231
+ :param _request_timeout: timeout setting for this request. If one
232
+ number provided, it will be total request
233
+ timeout. It can also be a pair (tuple) of
234
+ (connection, read) timeouts.
235
+ :return: tuple(V1SelfSubjectAccessReview, status_code(int), headers(HTTPHeaderDict))
236
+ If the method is called asynchronously,
237
+ returns the request thread.
238
+ """
239
+
240
+ local_var_params = locals()
241
+
242
+ all_params = [
243
+ 'body',
244
+ 'dry_run',
245
+ 'field_manager',
246
+ 'field_validation',
247
+ 'pretty'
248
+ ]
249
+ all_params.extend(
250
+ [
251
+ 'async_req',
252
+ '_return_http_data_only',
253
+ '_preload_content',
254
+ '_request_timeout'
255
+ ]
256
+ )
257
+
258
+ for key, val in six.iteritems(local_var_params['kwargs']):
259
+ if key not in all_params:
260
+ raise ApiTypeError(
261
+ "Got an unexpected keyword argument '%s'"
262
+ " to method create_self_subject_access_review" % key
263
+ )
264
+ local_var_params[key] = val
265
+ del local_var_params['kwargs']
266
+ # verify the required parameter 'body' is set
267
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
268
+ local_var_params['body'] is None): # noqa: E501
269
+ raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501
270
+
271
+ collection_formats = {}
272
+
273
+ path_params = {}
274
+
275
+ query_params = []
276
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
277
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
278
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
279
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
280
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
281
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
282
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
283
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
284
+
285
+ header_params = {}
286
+
287
+ form_params = []
288
+ local_var_files = {}
289
+
290
+ body_params = None
291
+ if 'body' in local_var_params:
292
+ body_params = local_var_params['body']
293
+ # HTTP header `Accept`
294
+ header_params['Accept'] = self.api_client.select_header_accept(
295
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
296
+
297
+ # Authentication setting
298
+ auth_settings = ['BearerToken'] # noqa: E501
299
+
300
+ return self.api_client.call_api(
301
+ '/apis/authorization.k8s.io/v1/selfsubjectaccessreviews', 'POST',
302
+ path_params,
303
+ query_params,
304
+ header_params,
305
+ body=body_params,
306
+ post_params=form_params,
307
+ files=local_var_files,
308
+ response_type='V1SelfSubjectAccessReview', # noqa: E501
309
+ auth_settings=auth_settings,
310
+ async_req=local_var_params.get('async_req'),
311
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
312
+ _preload_content=local_var_params.get('_preload_content', True),
313
+ _request_timeout=local_var_params.get('_request_timeout'),
314
+ collection_formats=collection_formats)
315
+
316
+ def create_self_subject_rules_review(self, body, **kwargs): # noqa: E501
317
+ """create_self_subject_rules_review # noqa: E501
318
+
319
+ create a SelfSubjectRulesReview # noqa: E501
320
+ This method makes a synchronous HTTP request by default. To make an
321
+ asynchronous HTTP request, please pass async_req=True
322
+ >>> thread = api.create_self_subject_rules_review(body, async_req=True)
323
+ >>> result = thread.get()
324
+
325
+ :param async_req bool: execute request asynchronously
326
+ :param V1SelfSubjectRulesReview body: (required)
327
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
328
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
329
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
330
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
331
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
332
+ be returned without reading/decoding response
333
+ data. Default is True.
334
+ :param _request_timeout: timeout setting for this request. If one
335
+ number provided, it will be total request
336
+ timeout. It can also be a pair (tuple) of
337
+ (connection, read) timeouts.
338
+ :return: V1SelfSubjectRulesReview
339
+ If the method is called asynchronously,
340
+ returns the request thread.
341
+ """
342
+ kwargs['_return_http_data_only'] = True
343
+ return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501
344
+
345
+ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # noqa: E501
346
+ """create_self_subject_rules_review # noqa: E501
347
+
348
+ create a SelfSubjectRulesReview # noqa: E501
349
+ This method makes a synchronous HTTP request by default. To make an
350
+ asynchronous HTTP request, please pass async_req=True
351
+ >>> thread = api.create_self_subject_rules_review_with_http_info(body, async_req=True)
352
+ >>> result = thread.get()
353
+
354
+ :param async_req bool: execute request asynchronously
355
+ :param V1SelfSubjectRulesReview body: (required)
356
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
357
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
358
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
359
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
360
+ :param _return_http_data_only: response data without head status code
361
+ and headers
362
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
363
+ be returned without reading/decoding response
364
+ data. Default is True.
365
+ :param _request_timeout: timeout setting for this request. If one
366
+ number provided, it will be total request
367
+ timeout. It can also be a pair (tuple) of
368
+ (connection, read) timeouts.
369
+ :return: tuple(V1SelfSubjectRulesReview, status_code(int), headers(HTTPHeaderDict))
370
+ If the method is called asynchronously,
371
+ returns the request thread.
372
+ """
373
+
374
+ local_var_params = locals()
375
+
376
+ all_params = [
377
+ 'body',
378
+ 'dry_run',
379
+ 'field_manager',
380
+ 'field_validation',
381
+ 'pretty'
382
+ ]
383
+ all_params.extend(
384
+ [
385
+ 'async_req',
386
+ '_return_http_data_only',
387
+ '_preload_content',
388
+ '_request_timeout'
389
+ ]
390
+ )
391
+
392
+ for key, val in six.iteritems(local_var_params['kwargs']):
393
+ if key not in all_params:
394
+ raise ApiTypeError(
395
+ "Got an unexpected keyword argument '%s'"
396
+ " to method create_self_subject_rules_review" % key
397
+ )
398
+ local_var_params[key] = val
399
+ del local_var_params['kwargs']
400
+ # verify the required parameter 'body' is set
401
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
402
+ local_var_params['body'] is None): # noqa: E501
403
+ raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501
404
+
405
+ collection_formats = {}
406
+
407
+ path_params = {}
408
+
409
+ query_params = []
410
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
411
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
412
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
413
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
414
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
415
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
416
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
417
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
418
+
419
+ header_params = {}
420
+
421
+ form_params = []
422
+ local_var_files = {}
423
+
424
+ body_params = None
425
+ if 'body' in local_var_params:
426
+ body_params = local_var_params['body']
427
+ # HTTP header `Accept`
428
+ header_params['Accept'] = self.api_client.select_header_accept(
429
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
430
+
431
+ # Authentication setting
432
+ auth_settings = ['BearerToken'] # noqa: E501
433
+
434
+ return self.api_client.call_api(
435
+ '/apis/authorization.k8s.io/v1/selfsubjectrulesreviews', 'POST',
436
+ path_params,
437
+ query_params,
438
+ header_params,
439
+ body=body_params,
440
+ post_params=form_params,
441
+ files=local_var_files,
442
+ response_type='V1SelfSubjectRulesReview', # noqa: E501
443
+ auth_settings=auth_settings,
444
+ async_req=local_var_params.get('async_req'),
445
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
446
+ _preload_content=local_var_params.get('_preload_content', True),
447
+ _request_timeout=local_var_params.get('_request_timeout'),
448
+ collection_formats=collection_formats)
449
+
450
+ def create_subject_access_review(self, body, **kwargs): # noqa: E501
451
+ """create_subject_access_review # noqa: E501
452
+
453
+ create a SubjectAccessReview # noqa: E501
454
+ This method makes a synchronous HTTP request by default. To make an
455
+ asynchronous HTTP request, please pass async_req=True
456
+ >>> thread = api.create_subject_access_review(body, async_req=True)
457
+ >>> result = thread.get()
458
+
459
+ :param async_req bool: execute request asynchronously
460
+ :param V1SubjectAccessReview body: (required)
461
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
462
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
463
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
464
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
465
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
466
+ be returned without reading/decoding response
467
+ data. Default is True.
468
+ :param _request_timeout: timeout setting for this request. If one
469
+ number provided, it will be total request
470
+ timeout. It can also be a pair (tuple) of
471
+ (connection, read) timeouts.
472
+ :return: V1SubjectAccessReview
473
+ If the method is called asynchronously,
474
+ returns the request thread.
475
+ """
476
+ kwargs['_return_http_data_only'] = True
477
+ return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501
478
+
479
+ def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501
480
+ """create_subject_access_review # noqa: E501
481
+
482
+ create a SubjectAccessReview # noqa: E501
483
+ This method makes a synchronous HTTP request by default. To make an
484
+ asynchronous HTTP request, please pass async_req=True
485
+ >>> thread = api.create_subject_access_review_with_http_info(body, async_req=True)
486
+ >>> result = thread.get()
487
+
488
+ :param async_req bool: execute request asynchronously
489
+ :param V1SubjectAccessReview body: (required)
490
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
491
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
492
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
493
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
494
+ :param _return_http_data_only: response data without head status code
495
+ and headers
496
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
497
+ be returned without reading/decoding response
498
+ data. Default is True.
499
+ :param _request_timeout: timeout setting for this request. If one
500
+ number provided, it will be total request
501
+ timeout. It can also be a pair (tuple) of
502
+ (connection, read) timeouts.
503
+ :return: tuple(V1SubjectAccessReview, status_code(int), headers(HTTPHeaderDict))
504
+ If the method is called asynchronously,
505
+ returns the request thread.
506
+ """
507
+
508
+ local_var_params = locals()
509
+
510
+ all_params = [
511
+ 'body',
512
+ 'dry_run',
513
+ 'field_manager',
514
+ 'field_validation',
515
+ 'pretty'
516
+ ]
517
+ all_params.extend(
518
+ [
519
+ 'async_req',
520
+ '_return_http_data_only',
521
+ '_preload_content',
522
+ '_request_timeout'
523
+ ]
524
+ )
525
+
526
+ for key, val in six.iteritems(local_var_params['kwargs']):
527
+ if key not in all_params:
528
+ raise ApiTypeError(
529
+ "Got an unexpected keyword argument '%s'"
530
+ " to method create_subject_access_review" % key
531
+ )
532
+ local_var_params[key] = val
533
+ del local_var_params['kwargs']
534
+ # verify the required parameter 'body' is set
535
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
536
+ local_var_params['body'] is None): # noqa: E501
537
+ raise ApiValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501
538
+
539
+ collection_formats = {}
540
+
541
+ path_params = {}
542
+
543
+ query_params = []
544
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
545
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
546
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
547
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
548
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
549
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
550
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
551
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
552
+
553
+ header_params = {}
554
+
555
+ form_params = []
556
+ local_var_files = {}
557
+
558
+ body_params = None
559
+ if 'body' in local_var_params:
560
+ body_params = local_var_params['body']
561
+ # HTTP header `Accept`
562
+ header_params['Accept'] = self.api_client.select_header_accept(
563
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
564
+
565
+ # Authentication setting
566
+ auth_settings = ['BearerToken'] # noqa: E501
567
+
568
+ return self.api_client.call_api(
569
+ '/apis/authorization.k8s.io/v1/subjectaccessreviews', 'POST',
570
+ path_params,
571
+ query_params,
572
+ header_params,
573
+ body=body_params,
574
+ post_params=form_params,
575
+ files=local_var_files,
576
+ response_type='V1SubjectAccessReview', # noqa: E501
577
+ auth_settings=auth_settings,
578
+ async_req=local_var_params.get('async_req'),
579
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
580
+ _preload_content=local_var_params.get('_preload_content', True),
581
+ _request_timeout=local_var_params.get('_request_timeout'),
582
+ collection_formats=collection_formats)
583
+
584
+ def get_api_resources(self, **kwargs): # noqa: E501
585
+ """get_api_resources # noqa: E501
586
+
587
+ get available resources # noqa: E501
588
+ This method makes a synchronous HTTP request by default. To make an
589
+ asynchronous HTTP request, please pass async_req=True
590
+ >>> thread = api.get_api_resources(async_req=True)
591
+ >>> result = thread.get()
592
+
593
+ :param async_req bool: execute request asynchronously
594
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
595
+ be returned without reading/decoding response
596
+ data. Default is True.
597
+ :param _request_timeout: timeout setting for this request. If one
598
+ number provided, it will be total request
599
+ timeout. It can also be a pair (tuple) of
600
+ (connection, read) timeouts.
601
+ :return: V1APIResourceList
602
+ If the method is called asynchronously,
603
+ returns the request thread.
604
+ """
605
+ kwargs['_return_http_data_only'] = True
606
+ return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
607
+
608
+ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
609
+ """get_api_resources # noqa: E501
610
+
611
+ get available resources # noqa: E501
612
+ This method makes a synchronous HTTP request by default. To make an
613
+ asynchronous HTTP request, please pass async_req=True
614
+ >>> thread = api.get_api_resources_with_http_info(async_req=True)
615
+ >>> result = thread.get()
616
+
617
+ :param async_req bool: execute request asynchronously
618
+ :param _return_http_data_only: response data without head status code
619
+ and headers
620
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
621
+ be returned without reading/decoding response
622
+ data. Default is True.
623
+ :param _request_timeout: timeout setting for this request. If one
624
+ number provided, it will be total request
625
+ timeout. It can also be a pair (tuple) of
626
+ (connection, read) timeouts.
627
+ :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
628
+ If the method is called asynchronously,
629
+ returns the request thread.
630
+ """
631
+
632
+ local_var_params = locals()
633
+
634
+ all_params = [
635
+ ]
636
+ all_params.extend(
637
+ [
638
+ 'async_req',
639
+ '_return_http_data_only',
640
+ '_preload_content',
641
+ '_request_timeout'
642
+ ]
643
+ )
644
+
645
+ for key, val in six.iteritems(local_var_params['kwargs']):
646
+ if key not in all_params:
647
+ raise ApiTypeError(
648
+ "Got an unexpected keyword argument '%s'"
649
+ " to method get_api_resources" % key
650
+ )
651
+ local_var_params[key] = val
652
+ del local_var_params['kwargs']
653
+
654
+ collection_formats = {}
655
+
656
+ path_params = {}
657
+
658
+ query_params = []
659
+
660
+ header_params = {}
661
+
662
+ form_params = []
663
+ local_var_files = {}
664
+
665
+ body_params = None
666
+ # HTTP header `Accept`
667
+ header_params['Accept'] = self.api_client.select_header_accept(
668
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
669
+
670
+ # Authentication setting
671
+ auth_settings = ['BearerToken'] # noqa: E501
672
+
673
+ return self.api_client.call_api(
674
+ '/apis/authorization.k8s.io/v1/', 'GET',
675
+ path_params,
676
+ query_params,
677
+ header_params,
678
+ body=body_params,
679
+ post_params=form_params,
680
+ files=local_var_files,
681
+ response_type='V1APIResourceList', # noqa: E501
682
+ auth_settings=auth_settings,
683
+ async_req=local_var_params.get('async_req'),
684
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
685
+ _preload_content=local_var_params.get('_preload_content', True),
686
+ _request_timeout=local_var_params.get('_request_timeout'),
687
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/autoscaling_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class AutoscalingApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/autoscaling/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/autoscaling_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/autoscaling_v2_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/batch_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class BatchApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/batch/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/batch_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class CertificatesApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/certificates.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_v1alpha1_api.py ADDED
@@ -0,0 +1,1179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class CertificatesV1alpha1Api(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def create_cluster_trust_bundle(self, body, **kwargs): # noqa: E501
40
+ """create_cluster_trust_bundle # noqa: E501
41
+
42
+ create a ClusterTrustBundle # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.create_cluster_trust_bundle(body, async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param V1alpha1ClusterTrustBundle body: (required)
50
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
51
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
52
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
53
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
54
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
55
+ be returned without reading/decoding response
56
+ data. Default is True.
57
+ :param _request_timeout: timeout setting for this request. If one
58
+ number provided, it will be total request
59
+ timeout. It can also be a pair (tuple) of
60
+ (connection, read) timeouts.
61
+ :return: V1alpha1ClusterTrustBundle
62
+ If the method is called asynchronously,
63
+ returns the request thread.
64
+ """
65
+ kwargs['_return_http_data_only'] = True
66
+ return self.create_cluster_trust_bundle_with_http_info(body, **kwargs) # noqa: E501
67
+
68
+ def create_cluster_trust_bundle_with_http_info(self, body, **kwargs): # noqa: E501
69
+ """create_cluster_trust_bundle # noqa: E501
70
+
71
+ create a ClusterTrustBundle # noqa: E501
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+ >>> thread = api.create_cluster_trust_bundle_with_http_info(body, async_req=True)
75
+ >>> result = thread.get()
76
+
77
+ :param async_req bool: execute request asynchronously
78
+ :param V1alpha1ClusterTrustBundle body: (required)
79
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
80
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
81
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
82
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
83
+ :param _return_http_data_only: response data without head status code
84
+ and headers
85
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
86
+ be returned without reading/decoding response
87
+ data. Default is True.
88
+ :param _request_timeout: timeout setting for this request. If one
89
+ number provided, it will be total request
90
+ timeout. It can also be a pair (tuple) of
91
+ (connection, read) timeouts.
92
+ :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict))
93
+ If the method is called asynchronously,
94
+ returns the request thread.
95
+ """
96
+
97
+ local_var_params = locals()
98
+
99
+ all_params = [
100
+ 'body',
101
+ 'pretty',
102
+ 'dry_run',
103
+ 'field_manager',
104
+ 'field_validation'
105
+ ]
106
+ all_params.extend(
107
+ [
108
+ 'async_req',
109
+ '_return_http_data_only',
110
+ '_preload_content',
111
+ '_request_timeout'
112
+ ]
113
+ )
114
+
115
+ for key, val in six.iteritems(local_var_params['kwargs']):
116
+ if key not in all_params:
117
+ raise ApiTypeError(
118
+ "Got an unexpected keyword argument '%s'"
119
+ " to method create_cluster_trust_bundle" % key
120
+ )
121
+ local_var_params[key] = val
122
+ del local_var_params['kwargs']
123
+ # verify the required parameter 'body' is set
124
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
125
+ local_var_params['body'] is None): # noqa: E501
126
+ raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_trust_bundle`") # noqa: E501
127
+
128
+ collection_formats = {}
129
+
130
+ path_params = {}
131
+
132
+ query_params = []
133
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
134
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
135
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
136
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
137
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
138
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
139
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
140
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
141
+
142
+ header_params = {}
143
+
144
+ form_params = []
145
+ local_var_files = {}
146
+
147
+ body_params = None
148
+ if 'body' in local_var_params:
149
+ body_params = local_var_params['body']
150
+ # HTTP header `Accept`
151
+ header_params['Accept'] = self.api_client.select_header_accept(
152
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
153
+
154
+ # Authentication setting
155
+ auth_settings = ['BearerToken'] # noqa: E501
156
+
157
+ return self.api_client.call_api(
158
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'POST',
159
+ path_params,
160
+ query_params,
161
+ header_params,
162
+ body=body_params,
163
+ post_params=form_params,
164
+ files=local_var_files,
165
+ response_type='V1alpha1ClusterTrustBundle', # noqa: E501
166
+ auth_settings=auth_settings,
167
+ async_req=local_var_params.get('async_req'),
168
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
169
+ _preload_content=local_var_params.get('_preload_content', True),
170
+ _request_timeout=local_var_params.get('_request_timeout'),
171
+ collection_formats=collection_formats)
172
+
173
+ def delete_cluster_trust_bundle(self, name, **kwargs): # noqa: E501
174
+ """delete_cluster_trust_bundle # noqa: E501
175
+
176
+ delete a ClusterTrustBundle # noqa: E501
177
+ This method makes a synchronous HTTP request by default. To make an
178
+ asynchronous HTTP request, please pass async_req=True
179
+ >>> thread = api.delete_cluster_trust_bundle(name, async_req=True)
180
+ >>> result = thread.get()
181
+
182
+ :param async_req bool: execute request asynchronously
183
+ :param str name: name of the ClusterTrustBundle (required)
184
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
185
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
186
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
187
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
188
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
189
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
190
+ :param V1DeleteOptions body:
191
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
192
+ be returned without reading/decoding response
193
+ data. Default is True.
194
+ :param _request_timeout: timeout setting for this request. If one
195
+ number provided, it will be total request
196
+ timeout. It can also be a pair (tuple) of
197
+ (connection, read) timeouts.
198
+ :return: V1Status
199
+ If the method is called asynchronously,
200
+ returns the request thread.
201
+ """
202
+ kwargs['_return_http_data_only'] = True
203
+ return self.delete_cluster_trust_bundle_with_http_info(name, **kwargs) # noqa: E501
204
+
205
+ def delete_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E501
206
+ """delete_cluster_trust_bundle # noqa: E501
207
+
208
+ delete a ClusterTrustBundle # noqa: E501
209
+ This method makes a synchronous HTTP request by default. To make an
210
+ asynchronous HTTP request, please pass async_req=True
211
+ >>> thread = api.delete_cluster_trust_bundle_with_http_info(name, async_req=True)
212
+ >>> result = thread.get()
213
+
214
+ :param async_req bool: execute request asynchronously
215
+ :param str name: name of the ClusterTrustBundle (required)
216
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
217
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
218
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
219
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
220
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
221
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
222
+ :param V1DeleteOptions body:
223
+ :param _return_http_data_only: response data without head status code
224
+ and headers
225
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
226
+ be returned without reading/decoding response
227
+ data. Default is True.
228
+ :param _request_timeout: timeout setting for this request. If one
229
+ number provided, it will be total request
230
+ timeout. It can also be a pair (tuple) of
231
+ (connection, read) timeouts.
232
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
233
+ If the method is called asynchronously,
234
+ returns the request thread.
235
+ """
236
+
237
+ local_var_params = locals()
238
+
239
+ all_params = [
240
+ 'name',
241
+ 'pretty',
242
+ 'dry_run',
243
+ 'grace_period_seconds',
244
+ 'ignore_store_read_error_with_cluster_breaking_potential',
245
+ 'orphan_dependents',
246
+ 'propagation_policy',
247
+ 'body'
248
+ ]
249
+ all_params.extend(
250
+ [
251
+ 'async_req',
252
+ '_return_http_data_only',
253
+ '_preload_content',
254
+ '_request_timeout'
255
+ ]
256
+ )
257
+
258
+ for key, val in six.iteritems(local_var_params['kwargs']):
259
+ if key not in all_params:
260
+ raise ApiTypeError(
261
+ "Got an unexpected keyword argument '%s'"
262
+ " to method delete_cluster_trust_bundle" % key
263
+ )
264
+ local_var_params[key] = val
265
+ del local_var_params['kwargs']
266
+ # verify the required parameter 'name' is set
267
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
268
+ local_var_params['name'] is None): # noqa: E501
269
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_trust_bundle`") # noqa: E501
270
+
271
+ collection_formats = {}
272
+
273
+ path_params = {}
274
+ if 'name' in local_var_params:
275
+ path_params['name'] = local_var_params['name'] # noqa: E501
276
+
277
+ query_params = []
278
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
279
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
280
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
281
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
282
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
283
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
284
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
285
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
286
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
287
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
288
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
289
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
290
+
291
+ header_params = {}
292
+
293
+ form_params = []
294
+ local_var_files = {}
295
+
296
+ body_params = None
297
+ if 'body' in local_var_params:
298
+ body_params = local_var_params['body']
299
+ # HTTP header `Accept`
300
+ header_params['Accept'] = self.api_client.select_header_accept(
301
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
302
+
303
+ # Authentication setting
304
+ auth_settings = ['BearerToken'] # noqa: E501
305
+
306
+ return self.api_client.call_api(
307
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'DELETE',
308
+ path_params,
309
+ query_params,
310
+ header_params,
311
+ body=body_params,
312
+ post_params=form_params,
313
+ files=local_var_files,
314
+ response_type='V1Status', # noqa: E501
315
+ auth_settings=auth_settings,
316
+ async_req=local_var_params.get('async_req'),
317
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
318
+ _preload_content=local_var_params.get('_preload_content', True),
319
+ _request_timeout=local_var_params.get('_request_timeout'),
320
+ collection_formats=collection_formats)
321
+
322
+ def delete_collection_cluster_trust_bundle(self, **kwargs): # noqa: E501
323
+ """delete_collection_cluster_trust_bundle # noqa: E501
324
+
325
+ delete collection of ClusterTrustBundle # noqa: E501
326
+ This method makes a synchronous HTTP request by default. To make an
327
+ asynchronous HTTP request, please pass async_req=True
328
+ >>> thread = api.delete_collection_cluster_trust_bundle(async_req=True)
329
+ >>> result = thread.get()
330
+
331
+ :param async_req bool: execute request asynchronously
332
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
333
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
334
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
335
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
336
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
337
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
338
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
339
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
340
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
341
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
342
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
343
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
344
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
345
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
346
+ :param V1DeleteOptions body:
347
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
348
+ be returned without reading/decoding response
349
+ data. Default is True.
350
+ :param _request_timeout: timeout setting for this request. If one
351
+ number provided, it will be total request
352
+ timeout. It can also be a pair (tuple) of
353
+ (connection, read) timeouts.
354
+ :return: V1Status
355
+ If the method is called asynchronously,
356
+ returns the request thread.
357
+ """
358
+ kwargs['_return_http_data_only'] = True
359
+ return self.delete_collection_cluster_trust_bundle_with_http_info(**kwargs) # noqa: E501
360
+
361
+ def delete_collection_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501
362
+ """delete_collection_cluster_trust_bundle # noqa: E501
363
+
364
+ delete collection of ClusterTrustBundle # noqa: E501
365
+ This method makes a synchronous HTTP request by default. To make an
366
+ asynchronous HTTP request, please pass async_req=True
367
+ >>> thread = api.delete_collection_cluster_trust_bundle_with_http_info(async_req=True)
368
+ >>> result = thread.get()
369
+
370
+ :param async_req bool: execute request asynchronously
371
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
372
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
373
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
374
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
375
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
376
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
377
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
378
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
379
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
380
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
381
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
382
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
383
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
384
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
385
+ :param V1DeleteOptions body:
386
+ :param _return_http_data_only: response data without head status code
387
+ and headers
388
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
389
+ be returned without reading/decoding response
390
+ data. Default is True.
391
+ :param _request_timeout: timeout setting for this request. If one
392
+ number provided, it will be total request
393
+ timeout. It can also be a pair (tuple) of
394
+ (connection, read) timeouts.
395
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
396
+ If the method is called asynchronously,
397
+ returns the request thread.
398
+ """
399
+
400
+ local_var_params = locals()
401
+
402
+ all_params = [
403
+ 'pretty',
404
+ '_continue',
405
+ 'dry_run',
406
+ 'field_selector',
407
+ 'grace_period_seconds',
408
+ 'ignore_store_read_error_with_cluster_breaking_potential',
409
+ 'label_selector',
410
+ 'limit',
411
+ 'orphan_dependents',
412
+ 'propagation_policy',
413
+ 'resource_version',
414
+ 'resource_version_match',
415
+ 'send_initial_events',
416
+ 'timeout_seconds',
417
+ 'body'
418
+ ]
419
+ all_params.extend(
420
+ [
421
+ 'async_req',
422
+ '_return_http_data_only',
423
+ '_preload_content',
424
+ '_request_timeout'
425
+ ]
426
+ )
427
+
428
+ for key, val in six.iteritems(local_var_params['kwargs']):
429
+ if key not in all_params:
430
+ raise ApiTypeError(
431
+ "Got an unexpected keyword argument '%s'"
432
+ " to method delete_collection_cluster_trust_bundle" % key
433
+ )
434
+ local_var_params[key] = val
435
+ del local_var_params['kwargs']
436
+
437
+ collection_formats = {}
438
+
439
+ path_params = {}
440
+
441
+ query_params = []
442
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
443
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
444
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
445
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
446
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
447
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
448
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
449
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
450
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
451
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
452
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
453
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
454
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
455
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
456
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
457
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
458
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
459
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
460
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
461
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
462
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
463
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
464
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
465
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
466
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
467
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
468
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
469
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
470
+
471
+ header_params = {}
472
+
473
+ form_params = []
474
+ local_var_files = {}
475
+
476
+ body_params = None
477
+ if 'body' in local_var_params:
478
+ body_params = local_var_params['body']
479
+ # HTTP header `Accept`
480
+ header_params['Accept'] = self.api_client.select_header_accept(
481
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
482
+
483
+ # Authentication setting
484
+ auth_settings = ['BearerToken'] # noqa: E501
485
+
486
+ return self.api_client.call_api(
487
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'DELETE',
488
+ path_params,
489
+ query_params,
490
+ header_params,
491
+ body=body_params,
492
+ post_params=form_params,
493
+ files=local_var_files,
494
+ response_type='V1Status', # noqa: E501
495
+ auth_settings=auth_settings,
496
+ async_req=local_var_params.get('async_req'),
497
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
498
+ _preload_content=local_var_params.get('_preload_content', True),
499
+ _request_timeout=local_var_params.get('_request_timeout'),
500
+ collection_formats=collection_formats)
501
+
502
+ def get_api_resources(self, **kwargs): # noqa: E501
503
+ """get_api_resources # noqa: E501
504
+
505
+ get available resources # noqa: E501
506
+ This method makes a synchronous HTTP request by default. To make an
507
+ asynchronous HTTP request, please pass async_req=True
508
+ >>> thread = api.get_api_resources(async_req=True)
509
+ >>> result = thread.get()
510
+
511
+ :param async_req bool: execute request asynchronously
512
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
513
+ be returned without reading/decoding response
514
+ data. Default is True.
515
+ :param _request_timeout: timeout setting for this request. If one
516
+ number provided, it will be total request
517
+ timeout. It can also be a pair (tuple) of
518
+ (connection, read) timeouts.
519
+ :return: V1APIResourceList
520
+ If the method is called asynchronously,
521
+ returns the request thread.
522
+ """
523
+ kwargs['_return_http_data_only'] = True
524
+ return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
525
+
526
+ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
527
+ """get_api_resources # noqa: E501
528
+
529
+ get available resources # noqa: E501
530
+ This method makes a synchronous HTTP request by default. To make an
531
+ asynchronous HTTP request, please pass async_req=True
532
+ >>> thread = api.get_api_resources_with_http_info(async_req=True)
533
+ >>> result = thread.get()
534
+
535
+ :param async_req bool: execute request asynchronously
536
+ :param _return_http_data_only: response data without head status code
537
+ and headers
538
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
539
+ be returned without reading/decoding response
540
+ data. Default is True.
541
+ :param _request_timeout: timeout setting for this request. If one
542
+ number provided, it will be total request
543
+ timeout. It can also be a pair (tuple) of
544
+ (connection, read) timeouts.
545
+ :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
546
+ If the method is called asynchronously,
547
+ returns the request thread.
548
+ """
549
+
550
+ local_var_params = locals()
551
+
552
+ all_params = [
553
+ ]
554
+ all_params.extend(
555
+ [
556
+ 'async_req',
557
+ '_return_http_data_only',
558
+ '_preload_content',
559
+ '_request_timeout'
560
+ ]
561
+ )
562
+
563
+ for key, val in six.iteritems(local_var_params['kwargs']):
564
+ if key not in all_params:
565
+ raise ApiTypeError(
566
+ "Got an unexpected keyword argument '%s'"
567
+ " to method get_api_resources" % key
568
+ )
569
+ local_var_params[key] = val
570
+ del local_var_params['kwargs']
571
+
572
+ collection_formats = {}
573
+
574
+ path_params = {}
575
+
576
+ query_params = []
577
+
578
+ header_params = {}
579
+
580
+ form_params = []
581
+ local_var_files = {}
582
+
583
+ body_params = None
584
+ # HTTP header `Accept`
585
+ header_params['Accept'] = self.api_client.select_header_accept(
586
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
587
+
588
+ # Authentication setting
589
+ auth_settings = ['BearerToken'] # noqa: E501
590
+
591
+ return self.api_client.call_api(
592
+ '/apis/certificates.k8s.io/v1alpha1/', 'GET',
593
+ path_params,
594
+ query_params,
595
+ header_params,
596
+ body=body_params,
597
+ post_params=form_params,
598
+ files=local_var_files,
599
+ response_type='V1APIResourceList', # noqa: E501
600
+ auth_settings=auth_settings,
601
+ async_req=local_var_params.get('async_req'),
602
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
603
+ _preload_content=local_var_params.get('_preload_content', True),
604
+ _request_timeout=local_var_params.get('_request_timeout'),
605
+ collection_formats=collection_formats)
606
+
607
+ def list_cluster_trust_bundle(self, **kwargs): # noqa: E501
608
+ """list_cluster_trust_bundle # noqa: E501
609
+
610
+ list or watch objects of kind ClusterTrustBundle # noqa: E501
611
+ This method makes a synchronous HTTP request by default. To make an
612
+ asynchronous HTTP request, please pass async_req=True
613
+ >>> thread = api.list_cluster_trust_bundle(async_req=True)
614
+ >>> result = thread.get()
615
+
616
+ :param async_req bool: execute request asynchronously
617
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
618
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
619
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
620
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
621
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
622
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
623
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
624
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
625
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
626
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
627
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
628
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
629
+ be returned without reading/decoding response
630
+ data. Default is True.
631
+ :param _request_timeout: timeout setting for this request. If one
632
+ number provided, it will be total request
633
+ timeout. It can also be a pair (tuple) of
634
+ (connection, read) timeouts.
635
+ :return: V1alpha1ClusterTrustBundleList
636
+ If the method is called asynchronously,
637
+ returns the request thread.
638
+ """
639
+ kwargs['_return_http_data_only'] = True
640
+ return self.list_cluster_trust_bundle_with_http_info(**kwargs) # noqa: E501
641
+
642
+ def list_cluster_trust_bundle_with_http_info(self, **kwargs): # noqa: E501
643
+ """list_cluster_trust_bundle # noqa: E501
644
+
645
+ list or watch objects of kind ClusterTrustBundle # noqa: E501
646
+ This method makes a synchronous HTTP request by default. To make an
647
+ asynchronous HTTP request, please pass async_req=True
648
+ >>> thread = api.list_cluster_trust_bundle_with_http_info(async_req=True)
649
+ >>> result = thread.get()
650
+
651
+ :param async_req bool: execute request asynchronously
652
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
653
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
654
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
655
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
656
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
657
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
658
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
659
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
660
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
661
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
662
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
663
+ :param _return_http_data_only: response data without head status code
664
+ and headers
665
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
666
+ be returned without reading/decoding response
667
+ data. Default is True.
668
+ :param _request_timeout: timeout setting for this request. If one
669
+ number provided, it will be total request
670
+ timeout. It can also be a pair (tuple) of
671
+ (connection, read) timeouts.
672
+ :return: tuple(V1alpha1ClusterTrustBundleList, status_code(int), headers(HTTPHeaderDict))
673
+ If the method is called asynchronously,
674
+ returns the request thread.
675
+ """
676
+
677
+ local_var_params = locals()
678
+
679
+ all_params = [
680
+ 'pretty',
681
+ 'allow_watch_bookmarks',
682
+ '_continue',
683
+ 'field_selector',
684
+ 'label_selector',
685
+ 'limit',
686
+ 'resource_version',
687
+ 'resource_version_match',
688
+ 'send_initial_events',
689
+ 'timeout_seconds',
690
+ 'watch'
691
+ ]
692
+ all_params.extend(
693
+ [
694
+ 'async_req',
695
+ '_return_http_data_only',
696
+ '_preload_content',
697
+ '_request_timeout'
698
+ ]
699
+ )
700
+
701
+ for key, val in six.iteritems(local_var_params['kwargs']):
702
+ if key not in all_params:
703
+ raise ApiTypeError(
704
+ "Got an unexpected keyword argument '%s'"
705
+ " to method list_cluster_trust_bundle" % key
706
+ )
707
+ local_var_params[key] = val
708
+ del local_var_params['kwargs']
709
+
710
+ collection_formats = {}
711
+
712
+ path_params = {}
713
+
714
+ query_params = []
715
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
716
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
717
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
718
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
719
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
720
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
721
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
722
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
723
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
724
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
725
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
726
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
727
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
728
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
729
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
730
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
731
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
732
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
733
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
734
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
735
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
736
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
737
+
738
+ header_params = {}
739
+
740
+ form_params = []
741
+ local_var_files = {}
742
+
743
+ body_params = None
744
+ # HTTP header `Accept`
745
+ header_params['Accept'] = self.api_client.select_header_accept(
746
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
747
+
748
+ # Authentication setting
749
+ auth_settings = ['BearerToken'] # noqa: E501
750
+
751
+ return self.api_client.call_api(
752
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', 'GET',
753
+ path_params,
754
+ query_params,
755
+ header_params,
756
+ body=body_params,
757
+ post_params=form_params,
758
+ files=local_var_files,
759
+ response_type='V1alpha1ClusterTrustBundleList', # noqa: E501
760
+ auth_settings=auth_settings,
761
+ async_req=local_var_params.get('async_req'),
762
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
763
+ _preload_content=local_var_params.get('_preload_content', True),
764
+ _request_timeout=local_var_params.get('_request_timeout'),
765
+ collection_formats=collection_formats)
766
+
767
+ def patch_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501
768
+ """patch_cluster_trust_bundle # noqa: E501
769
+
770
+ partially update the specified ClusterTrustBundle # noqa: E501
771
+ This method makes a synchronous HTTP request by default. To make an
772
+ asynchronous HTTP request, please pass async_req=True
773
+ >>> thread = api.patch_cluster_trust_bundle(name, body, async_req=True)
774
+ >>> result = thread.get()
775
+
776
+ :param async_req bool: execute request asynchronously
777
+ :param str name: name of the ClusterTrustBundle (required)
778
+ :param object body: (required)
779
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
780
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
781
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
782
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
783
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
784
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
785
+ be returned without reading/decoding response
786
+ data. Default is True.
787
+ :param _request_timeout: timeout setting for this request. If one
788
+ number provided, it will be total request
789
+ timeout. It can also be a pair (tuple) of
790
+ (connection, read) timeouts.
791
+ :return: V1alpha1ClusterTrustBundle
792
+ If the method is called asynchronously,
793
+ returns the request thread.
794
+ """
795
+ kwargs['_return_http_data_only'] = True
796
+ return self.patch_cluster_trust_bundle_with_http_info(name, body, **kwargs) # noqa: E501
797
+
798
+ def patch_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # noqa: E501
799
+ """patch_cluster_trust_bundle # noqa: E501
800
+
801
+ partially update the specified ClusterTrustBundle # noqa: E501
802
+ This method makes a synchronous HTTP request by default. To make an
803
+ asynchronous HTTP request, please pass async_req=True
804
+ >>> thread = api.patch_cluster_trust_bundle_with_http_info(name, body, async_req=True)
805
+ >>> result = thread.get()
806
+
807
+ :param async_req bool: execute request asynchronously
808
+ :param str name: name of the ClusterTrustBundle (required)
809
+ :param object body: (required)
810
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
811
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
812
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
813
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
814
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
815
+ :param _return_http_data_only: response data without head status code
816
+ and headers
817
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
818
+ be returned without reading/decoding response
819
+ data. Default is True.
820
+ :param _request_timeout: timeout setting for this request. If one
821
+ number provided, it will be total request
822
+ timeout. It can also be a pair (tuple) of
823
+ (connection, read) timeouts.
824
+ :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict))
825
+ If the method is called asynchronously,
826
+ returns the request thread.
827
+ """
828
+
829
+ local_var_params = locals()
830
+
831
+ all_params = [
832
+ 'name',
833
+ 'body',
834
+ 'pretty',
835
+ 'dry_run',
836
+ 'field_manager',
837
+ 'field_validation',
838
+ 'force'
839
+ ]
840
+ all_params.extend(
841
+ [
842
+ 'async_req',
843
+ '_return_http_data_only',
844
+ '_preload_content',
845
+ '_request_timeout'
846
+ ]
847
+ )
848
+
849
+ for key, val in six.iteritems(local_var_params['kwargs']):
850
+ if key not in all_params:
851
+ raise ApiTypeError(
852
+ "Got an unexpected keyword argument '%s'"
853
+ " to method patch_cluster_trust_bundle" % key
854
+ )
855
+ local_var_params[key] = val
856
+ del local_var_params['kwargs']
857
+ # verify the required parameter 'name' is set
858
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
859
+ local_var_params['name'] is None): # noqa: E501
860
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_trust_bundle`") # noqa: E501
861
+ # verify the required parameter 'body' is set
862
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
863
+ local_var_params['body'] is None): # noqa: E501
864
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_trust_bundle`") # noqa: E501
865
+
866
+ collection_formats = {}
867
+
868
+ path_params = {}
869
+ if 'name' in local_var_params:
870
+ path_params['name'] = local_var_params['name'] # noqa: E501
871
+
872
+ query_params = []
873
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
874
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
875
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
876
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
877
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
878
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
879
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
880
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
881
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
882
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
883
+
884
+ header_params = {}
885
+
886
+ form_params = []
887
+ local_var_files = {}
888
+
889
+ body_params = None
890
+ if 'body' in local_var_params:
891
+ body_params = local_var_params['body']
892
+ # HTTP header `Accept`
893
+ header_params['Accept'] = self.api_client.select_header_accept(
894
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
895
+
896
+ # HTTP header `Content-Type`
897
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
898
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
899
+
900
+ # Authentication setting
901
+ auth_settings = ['BearerToken'] # noqa: E501
902
+
903
+ return self.api_client.call_api(
904
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'PATCH',
905
+ path_params,
906
+ query_params,
907
+ header_params,
908
+ body=body_params,
909
+ post_params=form_params,
910
+ files=local_var_files,
911
+ response_type='V1alpha1ClusterTrustBundle', # noqa: E501
912
+ auth_settings=auth_settings,
913
+ async_req=local_var_params.get('async_req'),
914
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
915
+ _preload_content=local_var_params.get('_preload_content', True),
916
+ _request_timeout=local_var_params.get('_request_timeout'),
917
+ collection_formats=collection_formats)
918
+
919
+ def read_cluster_trust_bundle(self, name, **kwargs): # noqa: E501
920
+ """read_cluster_trust_bundle # noqa: E501
921
+
922
+ read the specified ClusterTrustBundle # noqa: E501
923
+ This method makes a synchronous HTTP request by default. To make an
924
+ asynchronous HTTP request, please pass async_req=True
925
+ >>> thread = api.read_cluster_trust_bundle(name, async_req=True)
926
+ >>> result = thread.get()
927
+
928
+ :param async_req bool: execute request asynchronously
929
+ :param str name: name of the ClusterTrustBundle (required)
930
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
931
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
932
+ be returned without reading/decoding response
933
+ data. Default is True.
934
+ :param _request_timeout: timeout setting for this request. If one
935
+ number provided, it will be total request
936
+ timeout. It can also be a pair (tuple) of
937
+ (connection, read) timeouts.
938
+ :return: V1alpha1ClusterTrustBundle
939
+ If the method is called asynchronously,
940
+ returns the request thread.
941
+ """
942
+ kwargs['_return_http_data_only'] = True
943
+ return self.read_cluster_trust_bundle_with_http_info(name, **kwargs) # noqa: E501
944
+
945
+ def read_cluster_trust_bundle_with_http_info(self, name, **kwargs): # noqa: E501
946
+ """read_cluster_trust_bundle # noqa: E501
947
+
948
+ read the specified ClusterTrustBundle # noqa: E501
949
+ This method makes a synchronous HTTP request by default. To make an
950
+ asynchronous HTTP request, please pass async_req=True
951
+ >>> thread = api.read_cluster_trust_bundle_with_http_info(name, async_req=True)
952
+ >>> result = thread.get()
953
+
954
+ :param async_req bool: execute request asynchronously
955
+ :param str name: name of the ClusterTrustBundle (required)
956
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
957
+ :param _return_http_data_only: response data without head status code
958
+ and headers
959
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
960
+ be returned without reading/decoding response
961
+ data. Default is True.
962
+ :param _request_timeout: timeout setting for this request. If one
963
+ number provided, it will be total request
964
+ timeout. It can also be a pair (tuple) of
965
+ (connection, read) timeouts.
966
+ :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict))
967
+ If the method is called asynchronously,
968
+ returns the request thread.
969
+ """
970
+
971
+ local_var_params = locals()
972
+
973
+ all_params = [
974
+ 'name',
975
+ 'pretty'
976
+ ]
977
+ all_params.extend(
978
+ [
979
+ 'async_req',
980
+ '_return_http_data_only',
981
+ '_preload_content',
982
+ '_request_timeout'
983
+ ]
984
+ )
985
+
986
+ for key, val in six.iteritems(local_var_params['kwargs']):
987
+ if key not in all_params:
988
+ raise ApiTypeError(
989
+ "Got an unexpected keyword argument '%s'"
990
+ " to method read_cluster_trust_bundle" % key
991
+ )
992
+ local_var_params[key] = val
993
+ del local_var_params['kwargs']
994
+ # verify the required parameter 'name' is set
995
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
996
+ local_var_params['name'] is None): # noqa: E501
997
+ raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_trust_bundle`") # noqa: E501
998
+
999
+ collection_formats = {}
1000
+
1001
+ path_params = {}
1002
+ if 'name' in local_var_params:
1003
+ path_params['name'] = local_var_params['name'] # noqa: E501
1004
+
1005
+ query_params = []
1006
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
1007
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
1008
+
1009
+ header_params = {}
1010
+
1011
+ form_params = []
1012
+ local_var_files = {}
1013
+
1014
+ body_params = None
1015
+ # HTTP header `Accept`
1016
+ header_params['Accept'] = self.api_client.select_header_accept(
1017
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
1018
+
1019
+ # Authentication setting
1020
+ auth_settings = ['BearerToken'] # noqa: E501
1021
+
1022
+ return self.api_client.call_api(
1023
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'GET',
1024
+ path_params,
1025
+ query_params,
1026
+ header_params,
1027
+ body=body_params,
1028
+ post_params=form_params,
1029
+ files=local_var_files,
1030
+ response_type='V1alpha1ClusterTrustBundle', # noqa: E501
1031
+ auth_settings=auth_settings,
1032
+ async_req=local_var_params.get('async_req'),
1033
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1034
+ _preload_content=local_var_params.get('_preload_content', True),
1035
+ _request_timeout=local_var_params.get('_request_timeout'),
1036
+ collection_formats=collection_formats)
1037
+
1038
+ def replace_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501
1039
+ """replace_cluster_trust_bundle # noqa: E501
1040
+
1041
+ replace the specified ClusterTrustBundle # noqa: E501
1042
+ This method makes a synchronous HTTP request by default. To make an
1043
+ asynchronous HTTP request, please pass async_req=True
1044
+ >>> thread = api.replace_cluster_trust_bundle(name, body, async_req=True)
1045
+ >>> result = thread.get()
1046
+
1047
+ :param async_req bool: execute request asynchronously
1048
+ :param str name: name of the ClusterTrustBundle (required)
1049
+ :param V1alpha1ClusterTrustBundle body: (required)
1050
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1051
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1052
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
1053
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1054
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1055
+ be returned without reading/decoding response
1056
+ data. Default is True.
1057
+ :param _request_timeout: timeout setting for this request. If one
1058
+ number provided, it will be total request
1059
+ timeout. It can also be a pair (tuple) of
1060
+ (connection, read) timeouts.
1061
+ :return: V1alpha1ClusterTrustBundle
1062
+ If the method is called asynchronously,
1063
+ returns the request thread.
1064
+ """
1065
+ kwargs['_return_http_data_only'] = True
1066
+ return self.replace_cluster_trust_bundle_with_http_info(name, body, **kwargs) # noqa: E501
1067
+
1068
+ def replace_cluster_trust_bundle_with_http_info(self, name, body, **kwargs): # noqa: E501
1069
+ """replace_cluster_trust_bundle # noqa: E501
1070
+
1071
+ replace the specified ClusterTrustBundle # noqa: E501
1072
+ This method makes a synchronous HTTP request by default. To make an
1073
+ asynchronous HTTP request, please pass async_req=True
1074
+ >>> thread = api.replace_cluster_trust_bundle_with_http_info(name, body, async_req=True)
1075
+ >>> result = thread.get()
1076
+
1077
+ :param async_req bool: execute request asynchronously
1078
+ :param str name: name of the ClusterTrustBundle (required)
1079
+ :param V1alpha1ClusterTrustBundle body: (required)
1080
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1081
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1082
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
1083
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1084
+ :param _return_http_data_only: response data without head status code
1085
+ and headers
1086
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1087
+ be returned without reading/decoding response
1088
+ data. Default is True.
1089
+ :param _request_timeout: timeout setting for this request. If one
1090
+ number provided, it will be total request
1091
+ timeout. It can also be a pair (tuple) of
1092
+ (connection, read) timeouts.
1093
+ :return: tuple(V1alpha1ClusterTrustBundle, status_code(int), headers(HTTPHeaderDict))
1094
+ If the method is called asynchronously,
1095
+ returns the request thread.
1096
+ """
1097
+
1098
+ local_var_params = locals()
1099
+
1100
+ all_params = [
1101
+ 'name',
1102
+ 'body',
1103
+ 'pretty',
1104
+ 'dry_run',
1105
+ 'field_manager',
1106
+ 'field_validation'
1107
+ ]
1108
+ all_params.extend(
1109
+ [
1110
+ 'async_req',
1111
+ '_return_http_data_only',
1112
+ '_preload_content',
1113
+ '_request_timeout'
1114
+ ]
1115
+ )
1116
+
1117
+ for key, val in six.iteritems(local_var_params['kwargs']):
1118
+ if key not in all_params:
1119
+ raise ApiTypeError(
1120
+ "Got an unexpected keyword argument '%s'"
1121
+ " to method replace_cluster_trust_bundle" % key
1122
+ )
1123
+ local_var_params[key] = val
1124
+ del local_var_params['kwargs']
1125
+ # verify the required parameter 'name' is set
1126
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
1127
+ local_var_params['name'] is None): # noqa: E501
1128
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_trust_bundle`") # noqa: E501
1129
+ # verify the required parameter 'body' is set
1130
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1131
+ local_var_params['body'] is None): # noqa: E501
1132
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_trust_bundle`") # noqa: E501
1133
+
1134
+ collection_formats = {}
1135
+
1136
+ path_params = {}
1137
+ if 'name' in local_var_params:
1138
+ path_params['name'] = local_var_params['name'] # noqa: E501
1139
+
1140
+ query_params = []
1141
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
1142
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
1143
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
1144
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
1145
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
1146
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
1147
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
1148
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
1149
+
1150
+ header_params = {}
1151
+
1152
+ form_params = []
1153
+ local_var_files = {}
1154
+
1155
+ body_params = None
1156
+ if 'body' in local_var_params:
1157
+ body_params = local_var_params['body']
1158
+ # HTTP header `Accept`
1159
+ header_params['Accept'] = self.api_client.select_header_accept(
1160
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
1161
+
1162
+ # Authentication setting
1163
+ auth_settings = ['BearerToken'] # noqa: E501
1164
+
1165
+ return self.api_client.call_api(
1166
+ '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', 'PUT',
1167
+ path_params,
1168
+ query_params,
1169
+ header_params,
1170
+ body=body_params,
1171
+ post_params=form_params,
1172
+ files=local_var_files,
1173
+ response_type='V1alpha1ClusterTrustBundle', # noqa: E501
1174
+ auth_settings=auth_settings,
1175
+ async_req=local_var_params.get('async_req'),
1176
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1177
+ _preload_content=local_var_params.get('_preload_content', True),
1178
+ _request_timeout=local_var_params.get('_request_timeout'),
1179
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/certificates_v1beta1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class CoordinationApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/coordination.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_v1alpha2_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/coordination_v1beta1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/core_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class CoreApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_versions(self, **kwargs): # noqa: E501
40
+ """get_api_versions # noqa: E501
41
+
42
+ get available API versions # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_versions(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIVersions
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_versions_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_versions_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_versions # noqa: E501
65
+
66
+ get available API versions # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_versions_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIVersions, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_versions" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/api/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIVersions', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/core_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/custom_objects_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/discovery_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class DiscoveryApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/discovery.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/discovery_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/events_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class EventsApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/events.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/events_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/flowcontrol_apiserver_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class FlowcontrolApiserverApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/flowcontrol.apiserver.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/flowcontrol_apiserver_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/internal_apiserver_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class InternalApiserverApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/internal.apiserver.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/internal_apiserver_v1alpha1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/logs_api.py ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class LogsApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def log_file_handler(self, logpath, **kwargs): # noqa: E501
40
+ """log_file_handler # noqa: E501
41
+
42
+ This method makes a synchronous HTTP request by default. To make an
43
+ asynchronous HTTP request, please pass async_req=True
44
+ >>> thread = api.log_file_handler(logpath, async_req=True)
45
+ >>> result = thread.get()
46
+
47
+ :param async_req bool: execute request asynchronously
48
+ :param str logpath: path to the log (required)
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: None
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501
62
+
63
+ def log_file_handler_with_http_info(self, logpath, **kwargs): # noqa: E501
64
+ """log_file_handler # noqa: E501
65
+
66
+ This method makes a synchronous HTTP request by default. To make an
67
+ asynchronous HTTP request, please pass async_req=True
68
+ >>> thread = api.log_file_handler_with_http_info(logpath, async_req=True)
69
+ >>> result = thread.get()
70
+
71
+ :param async_req bool: execute request asynchronously
72
+ :param str logpath: path to the log (required)
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: None
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ 'logpath'
91
+ ]
92
+ all_params.extend(
93
+ [
94
+ 'async_req',
95
+ '_return_http_data_only',
96
+ '_preload_content',
97
+ '_request_timeout'
98
+ ]
99
+ )
100
+
101
+ for key, val in six.iteritems(local_var_params['kwargs']):
102
+ if key not in all_params:
103
+ raise ApiTypeError(
104
+ "Got an unexpected keyword argument '%s'"
105
+ " to method log_file_handler" % key
106
+ )
107
+ local_var_params[key] = val
108
+ del local_var_params['kwargs']
109
+ # verify the required parameter 'logpath' is set
110
+ if self.api_client.client_side_validation and ('logpath' not in local_var_params or # noqa: E501
111
+ local_var_params['logpath'] is None): # noqa: E501
112
+ raise ApiValueError("Missing the required parameter `logpath` when calling `log_file_handler`") # noqa: E501
113
+
114
+ collection_formats = {}
115
+
116
+ path_params = {}
117
+ if 'logpath' in local_var_params:
118
+ path_params['logpath'] = local_var_params['logpath'] # noqa: E501
119
+
120
+ query_params = []
121
+
122
+ header_params = {}
123
+
124
+ form_params = []
125
+ local_var_files = {}
126
+
127
+ body_params = None
128
+ # Authentication setting
129
+ auth_settings = ['BearerToken'] # noqa: E501
130
+
131
+ return self.api_client.call_api(
132
+ '/logs/{logpath}', 'GET',
133
+ path_params,
134
+ query_params,
135
+ header_params,
136
+ body=body_params,
137
+ post_params=form_params,
138
+ files=local_var_files,
139
+ response_type=None, # noqa: E501
140
+ auth_settings=auth_settings,
141
+ async_req=local_var_params.get('async_req'),
142
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
143
+ _preload_content=local_var_params.get('_preload_content', True),
144
+ _request_timeout=local_var_params.get('_request_timeout'),
145
+ collection_formats=collection_formats)
146
+
147
+ def log_file_list_handler(self, **kwargs): # noqa: E501
148
+ """log_file_list_handler # noqa: E501
149
+
150
+ This method makes a synchronous HTTP request by default. To make an
151
+ asynchronous HTTP request, please pass async_req=True
152
+ >>> thread = api.log_file_list_handler(async_req=True)
153
+ >>> result = thread.get()
154
+
155
+ :param async_req bool: execute request asynchronously
156
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
157
+ be returned without reading/decoding response
158
+ data. Default is True.
159
+ :param _request_timeout: timeout setting for this request. If one
160
+ number provided, it will be total request
161
+ timeout. It can also be a pair (tuple) of
162
+ (connection, read) timeouts.
163
+ :return: None
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+ kwargs['_return_http_data_only'] = True
168
+ return self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501
169
+
170
+ def log_file_list_handler_with_http_info(self, **kwargs): # noqa: E501
171
+ """log_file_list_handler # noqa: E501
172
+
173
+ This method makes a synchronous HTTP request by default. To make an
174
+ asynchronous HTTP request, please pass async_req=True
175
+ >>> thread = api.log_file_list_handler_with_http_info(async_req=True)
176
+ >>> result = thread.get()
177
+
178
+ :param async_req bool: execute request asynchronously
179
+ :param _return_http_data_only: response data without head status code
180
+ and headers
181
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
182
+ be returned without reading/decoding response
183
+ data. Default is True.
184
+ :param _request_timeout: timeout setting for this request. If one
185
+ number provided, it will be total request
186
+ timeout. It can also be a pair (tuple) of
187
+ (connection, read) timeouts.
188
+ :return: None
189
+ If the method is called asynchronously,
190
+ returns the request thread.
191
+ """
192
+
193
+ local_var_params = locals()
194
+
195
+ all_params = [
196
+ ]
197
+ all_params.extend(
198
+ [
199
+ 'async_req',
200
+ '_return_http_data_only',
201
+ '_preload_content',
202
+ '_request_timeout'
203
+ ]
204
+ )
205
+
206
+ for key, val in six.iteritems(local_var_params['kwargs']):
207
+ if key not in all_params:
208
+ raise ApiTypeError(
209
+ "Got an unexpected keyword argument '%s'"
210
+ " to method log_file_list_handler" % key
211
+ )
212
+ local_var_params[key] = val
213
+ del local_var_params['kwargs']
214
+
215
+ collection_formats = {}
216
+
217
+ path_params = {}
218
+
219
+ query_params = []
220
+
221
+ header_params = {}
222
+
223
+ form_params = []
224
+ local_var_files = {}
225
+
226
+ body_params = None
227
+ # Authentication setting
228
+ auth_settings = ['BearerToken'] # noqa: E501
229
+
230
+ return self.api_client.call_api(
231
+ '/logs/', 'GET',
232
+ path_params,
233
+ query_params,
234
+ header_params,
235
+ body=body_params,
236
+ post_params=form_params,
237
+ files=local_var_files,
238
+ response_type=None, # noqa: E501
239
+ auth_settings=auth_settings,
240
+ async_req=local_var_params.get('async_req'),
241
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
242
+ _preload_content=local_var_params.get('_preload_content', True),
243
+ _request_timeout=local_var_params.get('_request_timeout'),
244
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/networking_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class NetworkingApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/networking.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/networking_v1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/networking_v1beta1_api.py ADDED
The diff for this file is too large to render. See raw diff
 
python/user_packages/Python313/site-packages/kubernetes/client/api/node_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class NodeApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_api_group(self, **kwargs): # noqa: E501
40
+ """get_api_group # noqa: E501
41
+
42
+ get information of a group # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_api_group(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: V1APIGroup
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_api_group_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_api_group # noqa: E501
65
+
66
+ get information of a group # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_api_group_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_api_group" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/apis/node.k8s.io/', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='V1APIGroup', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/node_v1_api.py ADDED
@@ -0,0 +1,1179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class NodeV1Api(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def create_runtime_class(self, body, **kwargs): # noqa: E501
40
+ """create_runtime_class # noqa: E501
41
+
42
+ create a RuntimeClass # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.create_runtime_class(body, async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param V1RuntimeClass body: (required)
50
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
51
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
52
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
53
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
54
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
55
+ be returned without reading/decoding response
56
+ data. Default is True.
57
+ :param _request_timeout: timeout setting for this request. If one
58
+ number provided, it will be total request
59
+ timeout. It can also be a pair (tuple) of
60
+ (connection, read) timeouts.
61
+ :return: V1RuntimeClass
62
+ If the method is called asynchronously,
63
+ returns the request thread.
64
+ """
65
+ kwargs['_return_http_data_only'] = True
66
+ return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501
67
+
68
+ def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501
69
+ """create_runtime_class # noqa: E501
70
+
71
+ create a RuntimeClass # noqa: E501
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+ >>> thread = api.create_runtime_class_with_http_info(body, async_req=True)
75
+ >>> result = thread.get()
76
+
77
+ :param async_req bool: execute request asynchronously
78
+ :param V1RuntimeClass body: (required)
79
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
80
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
81
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
82
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
83
+ :param _return_http_data_only: response data without head status code
84
+ and headers
85
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
86
+ be returned without reading/decoding response
87
+ data. Default is True.
88
+ :param _request_timeout: timeout setting for this request. If one
89
+ number provided, it will be total request
90
+ timeout. It can also be a pair (tuple) of
91
+ (connection, read) timeouts.
92
+ :return: tuple(V1RuntimeClass, status_code(int), headers(HTTPHeaderDict))
93
+ If the method is called asynchronously,
94
+ returns the request thread.
95
+ """
96
+
97
+ local_var_params = locals()
98
+
99
+ all_params = [
100
+ 'body',
101
+ 'pretty',
102
+ 'dry_run',
103
+ 'field_manager',
104
+ 'field_validation'
105
+ ]
106
+ all_params.extend(
107
+ [
108
+ 'async_req',
109
+ '_return_http_data_only',
110
+ '_preload_content',
111
+ '_request_timeout'
112
+ ]
113
+ )
114
+
115
+ for key, val in six.iteritems(local_var_params['kwargs']):
116
+ if key not in all_params:
117
+ raise ApiTypeError(
118
+ "Got an unexpected keyword argument '%s'"
119
+ " to method create_runtime_class" % key
120
+ )
121
+ local_var_params[key] = val
122
+ del local_var_params['kwargs']
123
+ # verify the required parameter 'body' is set
124
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
125
+ local_var_params['body'] is None): # noqa: E501
126
+ raise ApiValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501
127
+
128
+ collection_formats = {}
129
+
130
+ path_params = {}
131
+
132
+ query_params = []
133
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
134
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
135
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
136
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
137
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
138
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
139
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
140
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
141
+
142
+ header_params = {}
143
+
144
+ form_params = []
145
+ local_var_files = {}
146
+
147
+ body_params = None
148
+ if 'body' in local_var_params:
149
+ body_params = local_var_params['body']
150
+ # HTTP header `Accept`
151
+ header_params['Accept'] = self.api_client.select_header_accept(
152
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
153
+
154
+ # Authentication setting
155
+ auth_settings = ['BearerToken'] # noqa: E501
156
+
157
+ return self.api_client.call_api(
158
+ '/apis/node.k8s.io/v1/runtimeclasses', 'POST',
159
+ path_params,
160
+ query_params,
161
+ header_params,
162
+ body=body_params,
163
+ post_params=form_params,
164
+ files=local_var_files,
165
+ response_type='V1RuntimeClass', # noqa: E501
166
+ auth_settings=auth_settings,
167
+ async_req=local_var_params.get('async_req'),
168
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
169
+ _preload_content=local_var_params.get('_preload_content', True),
170
+ _request_timeout=local_var_params.get('_request_timeout'),
171
+ collection_formats=collection_formats)
172
+
173
+ def delete_collection_runtime_class(self, **kwargs): # noqa: E501
174
+ """delete_collection_runtime_class # noqa: E501
175
+
176
+ delete collection of RuntimeClass # noqa: E501
177
+ This method makes a synchronous HTTP request by default. To make an
178
+ asynchronous HTTP request, please pass async_req=True
179
+ >>> thread = api.delete_collection_runtime_class(async_req=True)
180
+ >>> result = thread.get()
181
+
182
+ :param async_req bool: execute request asynchronously
183
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
184
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
185
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
186
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
187
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
188
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
189
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
190
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
191
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
192
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
193
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
194
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
195
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
196
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
197
+ :param V1DeleteOptions body:
198
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
199
+ be returned without reading/decoding response
200
+ data. Default is True.
201
+ :param _request_timeout: timeout setting for this request. If one
202
+ number provided, it will be total request
203
+ timeout. It can also be a pair (tuple) of
204
+ (connection, read) timeouts.
205
+ :return: V1Status
206
+ If the method is called asynchronously,
207
+ returns the request thread.
208
+ """
209
+ kwargs['_return_http_data_only'] = True
210
+ return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501
211
+
212
+ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E501
213
+ """delete_collection_runtime_class # noqa: E501
214
+
215
+ delete collection of RuntimeClass # noqa: E501
216
+ This method makes a synchronous HTTP request by default. To make an
217
+ asynchronous HTTP request, please pass async_req=True
218
+ >>> thread = api.delete_collection_runtime_class_with_http_info(async_req=True)
219
+ >>> result = thread.get()
220
+
221
+ :param async_req bool: execute request asynchronously
222
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
223
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
224
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
225
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
226
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
227
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
228
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
229
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
230
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
231
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
232
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
233
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
234
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
235
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
236
+ :param V1DeleteOptions body:
237
+ :param _return_http_data_only: response data without head status code
238
+ and headers
239
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
240
+ be returned without reading/decoding response
241
+ data. Default is True.
242
+ :param _request_timeout: timeout setting for this request. If one
243
+ number provided, it will be total request
244
+ timeout. It can also be a pair (tuple) of
245
+ (connection, read) timeouts.
246
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
247
+ If the method is called asynchronously,
248
+ returns the request thread.
249
+ """
250
+
251
+ local_var_params = locals()
252
+
253
+ all_params = [
254
+ 'pretty',
255
+ '_continue',
256
+ 'dry_run',
257
+ 'field_selector',
258
+ 'grace_period_seconds',
259
+ 'ignore_store_read_error_with_cluster_breaking_potential',
260
+ 'label_selector',
261
+ 'limit',
262
+ 'orphan_dependents',
263
+ 'propagation_policy',
264
+ 'resource_version',
265
+ 'resource_version_match',
266
+ 'send_initial_events',
267
+ 'timeout_seconds',
268
+ 'body'
269
+ ]
270
+ all_params.extend(
271
+ [
272
+ 'async_req',
273
+ '_return_http_data_only',
274
+ '_preload_content',
275
+ '_request_timeout'
276
+ ]
277
+ )
278
+
279
+ for key, val in six.iteritems(local_var_params['kwargs']):
280
+ if key not in all_params:
281
+ raise ApiTypeError(
282
+ "Got an unexpected keyword argument '%s'"
283
+ " to method delete_collection_runtime_class" % key
284
+ )
285
+ local_var_params[key] = val
286
+ del local_var_params['kwargs']
287
+
288
+ collection_formats = {}
289
+
290
+ path_params = {}
291
+
292
+ query_params = []
293
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
294
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
295
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
296
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
297
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
298
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
299
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
300
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
301
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
302
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
303
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
304
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
305
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
306
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
307
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
308
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
309
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
310
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
311
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
312
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
313
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
314
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
315
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
316
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
317
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
318
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
319
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
320
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
321
+
322
+ header_params = {}
323
+
324
+ form_params = []
325
+ local_var_files = {}
326
+
327
+ body_params = None
328
+ if 'body' in local_var_params:
329
+ body_params = local_var_params['body']
330
+ # HTTP header `Accept`
331
+ header_params['Accept'] = self.api_client.select_header_accept(
332
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
333
+
334
+ # Authentication setting
335
+ auth_settings = ['BearerToken'] # noqa: E501
336
+
337
+ return self.api_client.call_api(
338
+ '/apis/node.k8s.io/v1/runtimeclasses', 'DELETE',
339
+ path_params,
340
+ query_params,
341
+ header_params,
342
+ body=body_params,
343
+ post_params=form_params,
344
+ files=local_var_files,
345
+ response_type='V1Status', # noqa: E501
346
+ auth_settings=auth_settings,
347
+ async_req=local_var_params.get('async_req'),
348
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
349
+ _preload_content=local_var_params.get('_preload_content', True),
350
+ _request_timeout=local_var_params.get('_request_timeout'),
351
+ collection_formats=collection_formats)
352
+
353
+ def delete_runtime_class(self, name, **kwargs): # noqa: E501
354
+ """delete_runtime_class # noqa: E501
355
+
356
+ delete a RuntimeClass # noqa: E501
357
+ This method makes a synchronous HTTP request by default. To make an
358
+ asynchronous HTTP request, please pass async_req=True
359
+ >>> thread = api.delete_runtime_class(name, async_req=True)
360
+ >>> result = thread.get()
361
+
362
+ :param async_req bool: execute request asynchronously
363
+ :param str name: name of the RuntimeClass (required)
364
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
365
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
366
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
367
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
368
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
369
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
370
+ :param V1DeleteOptions body:
371
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
372
+ be returned without reading/decoding response
373
+ data. Default is True.
374
+ :param _request_timeout: timeout setting for this request. If one
375
+ number provided, it will be total request
376
+ timeout. It can also be a pair (tuple) of
377
+ (connection, read) timeouts.
378
+ :return: V1Status
379
+ If the method is called asynchronously,
380
+ returns the request thread.
381
+ """
382
+ kwargs['_return_http_data_only'] = True
383
+ return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501
384
+
385
+ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501
386
+ """delete_runtime_class # noqa: E501
387
+
388
+ delete a RuntimeClass # noqa: E501
389
+ This method makes a synchronous HTTP request by default. To make an
390
+ asynchronous HTTP request, please pass async_req=True
391
+ >>> thread = api.delete_runtime_class_with_http_info(name, async_req=True)
392
+ >>> result = thread.get()
393
+
394
+ :param async_req bool: execute request asynchronously
395
+ :param str name: name of the RuntimeClass (required)
396
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
397
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
398
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
399
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
400
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
401
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
402
+ :param V1DeleteOptions body:
403
+ :param _return_http_data_only: response data without head status code
404
+ and headers
405
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
406
+ be returned without reading/decoding response
407
+ data. Default is True.
408
+ :param _request_timeout: timeout setting for this request. If one
409
+ number provided, it will be total request
410
+ timeout. It can also be a pair (tuple) of
411
+ (connection, read) timeouts.
412
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
413
+ If the method is called asynchronously,
414
+ returns the request thread.
415
+ """
416
+
417
+ local_var_params = locals()
418
+
419
+ all_params = [
420
+ 'name',
421
+ 'pretty',
422
+ 'dry_run',
423
+ 'grace_period_seconds',
424
+ 'ignore_store_read_error_with_cluster_breaking_potential',
425
+ 'orphan_dependents',
426
+ 'propagation_policy',
427
+ 'body'
428
+ ]
429
+ all_params.extend(
430
+ [
431
+ 'async_req',
432
+ '_return_http_data_only',
433
+ '_preload_content',
434
+ '_request_timeout'
435
+ ]
436
+ )
437
+
438
+ for key, val in six.iteritems(local_var_params['kwargs']):
439
+ if key not in all_params:
440
+ raise ApiTypeError(
441
+ "Got an unexpected keyword argument '%s'"
442
+ " to method delete_runtime_class" % key
443
+ )
444
+ local_var_params[key] = val
445
+ del local_var_params['kwargs']
446
+ # verify the required parameter 'name' is set
447
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
448
+ local_var_params['name'] is None): # noqa: E501
449
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501
450
+
451
+ collection_formats = {}
452
+
453
+ path_params = {}
454
+ if 'name' in local_var_params:
455
+ path_params['name'] = local_var_params['name'] # noqa: E501
456
+
457
+ query_params = []
458
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
459
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
460
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
461
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
462
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
463
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
464
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
465
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
466
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
467
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
468
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
469
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
470
+
471
+ header_params = {}
472
+
473
+ form_params = []
474
+ local_var_files = {}
475
+
476
+ body_params = None
477
+ if 'body' in local_var_params:
478
+ body_params = local_var_params['body']
479
+ # HTTP header `Accept`
480
+ header_params['Accept'] = self.api_client.select_header_accept(
481
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
482
+
483
+ # Authentication setting
484
+ auth_settings = ['BearerToken'] # noqa: E501
485
+
486
+ return self.api_client.call_api(
487
+ '/apis/node.k8s.io/v1/runtimeclasses/{name}', 'DELETE',
488
+ path_params,
489
+ query_params,
490
+ header_params,
491
+ body=body_params,
492
+ post_params=form_params,
493
+ files=local_var_files,
494
+ response_type='V1Status', # noqa: E501
495
+ auth_settings=auth_settings,
496
+ async_req=local_var_params.get('async_req'),
497
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
498
+ _preload_content=local_var_params.get('_preload_content', True),
499
+ _request_timeout=local_var_params.get('_request_timeout'),
500
+ collection_formats=collection_formats)
501
+
502
+ def get_api_resources(self, **kwargs): # noqa: E501
503
+ """get_api_resources # noqa: E501
504
+
505
+ get available resources # noqa: E501
506
+ This method makes a synchronous HTTP request by default. To make an
507
+ asynchronous HTTP request, please pass async_req=True
508
+ >>> thread = api.get_api_resources(async_req=True)
509
+ >>> result = thread.get()
510
+
511
+ :param async_req bool: execute request asynchronously
512
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
513
+ be returned without reading/decoding response
514
+ data. Default is True.
515
+ :param _request_timeout: timeout setting for this request. If one
516
+ number provided, it will be total request
517
+ timeout. It can also be a pair (tuple) of
518
+ (connection, read) timeouts.
519
+ :return: V1APIResourceList
520
+ If the method is called asynchronously,
521
+ returns the request thread.
522
+ """
523
+ kwargs['_return_http_data_only'] = True
524
+ return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
525
+
526
+ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
527
+ """get_api_resources # noqa: E501
528
+
529
+ get available resources # noqa: E501
530
+ This method makes a synchronous HTTP request by default. To make an
531
+ asynchronous HTTP request, please pass async_req=True
532
+ >>> thread = api.get_api_resources_with_http_info(async_req=True)
533
+ >>> result = thread.get()
534
+
535
+ :param async_req bool: execute request asynchronously
536
+ :param _return_http_data_only: response data without head status code
537
+ and headers
538
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
539
+ be returned without reading/decoding response
540
+ data. Default is True.
541
+ :param _request_timeout: timeout setting for this request. If one
542
+ number provided, it will be total request
543
+ timeout. It can also be a pair (tuple) of
544
+ (connection, read) timeouts.
545
+ :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
546
+ If the method is called asynchronously,
547
+ returns the request thread.
548
+ """
549
+
550
+ local_var_params = locals()
551
+
552
+ all_params = [
553
+ ]
554
+ all_params.extend(
555
+ [
556
+ 'async_req',
557
+ '_return_http_data_only',
558
+ '_preload_content',
559
+ '_request_timeout'
560
+ ]
561
+ )
562
+
563
+ for key, val in six.iteritems(local_var_params['kwargs']):
564
+ if key not in all_params:
565
+ raise ApiTypeError(
566
+ "Got an unexpected keyword argument '%s'"
567
+ " to method get_api_resources" % key
568
+ )
569
+ local_var_params[key] = val
570
+ del local_var_params['kwargs']
571
+
572
+ collection_formats = {}
573
+
574
+ path_params = {}
575
+
576
+ query_params = []
577
+
578
+ header_params = {}
579
+
580
+ form_params = []
581
+ local_var_files = {}
582
+
583
+ body_params = None
584
+ # HTTP header `Accept`
585
+ header_params['Accept'] = self.api_client.select_header_accept(
586
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
587
+
588
+ # Authentication setting
589
+ auth_settings = ['BearerToken'] # noqa: E501
590
+
591
+ return self.api_client.call_api(
592
+ '/apis/node.k8s.io/v1/', 'GET',
593
+ path_params,
594
+ query_params,
595
+ header_params,
596
+ body=body_params,
597
+ post_params=form_params,
598
+ files=local_var_files,
599
+ response_type='V1APIResourceList', # noqa: E501
600
+ auth_settings=auth_settings,
601
+ async_req=local_var_params.get('async_req'),
602
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
603
+ _preload_content=local_var_params.get('_preload_content', True),
604
+ _request_timeout=local_var_params.get('_request_timeout'),
605
+ collection_formats=collection_formats)
606
+
607
+ def list_runtime_class(self, **kwargs): # noqa: E501
608
+ """list_runtime_class # noqa: E501
609
+
610
+ list or watch objects of kind RuntimeClass # noqa: E501
611
+ This method makes a synchronous HTTP request by default. To make an
612
+ asynchronous HTTP request, please pass async_req=True
613
+ >>> thread = api.list_runtime_class(async_req=True)
614
+ >>> result = thread.get()
615
+
616
+ :param async_req bool: execute request asynchronously
617
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
618
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
619
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
620
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
621
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
622
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
623
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
624
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
625
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
626
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
627
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
628
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
629
+ be returned without reading/decoding response
630
+ data. Default is True.
631
+ :param _request_timeout: timeout setting for this request. If one
632
+ number provided, it will be total request
633
+ timeout. It can also be a pair (tuple) of
634
+ (connection, read) timeouts.
635
+ :return: V1RuntimeClassList
636
+ If the method is called asynchronously,
637
+ returns the request thread.
638
+ """
639
+ kwargs['_return_http_data_only'] = True
640
+ return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501
641
+
642
+ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501
643
+ """list_runtime_class # noqa: E501
644
+
645
+ list or watch objects of kind RuntimeClass # noqa: E501
646
+ This method makes a synchronous HTTP request by default. To make an
647
+ asynchronous HTTP request, please pass async_req=True
648
+ >>> thread = api.list_runtime_class_with_http_info(async_req=True)
649
+ >>> result = thread.get()
650
+
651
+ :param async_req bool: execute request asynchronously
652
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
653
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
654
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
655
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
656
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
657
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
658
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
659
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
660
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
661
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
662
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
663
+ :param _return_http_data_only: response data without head status code
664
+ and headers
665
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
666
+ be returned without reading/decoding response
667
+ data. Default is True.
668
+ :param _request_timeout: timeout setting for this request. If one
669
+ number provided, it will be total request
670
+ timeout. It can also be a pair (tuple) of
671
+ (connection, read) timeouts.
672
+ :return: tuple(V1RuntimeClassList, status_code(int), headers(HTTPHeaderDict))
673
+ If the method is called asynchronously,
674
+ returns the request thread.
675
+ """
676
+
677
+ local_var_params = locals()
678
+
679
+ all_params = [
680
+ 'pretty',
681
+ 'allow_watch_bookmarks',
682
+ '_continue',
683
+ 'field_selector',
684
+ 'label_selector',
685
+ 'limit',
686
+ 'resource_version',
687
+ 'resource_version_match',
688
+ 'send_initial_events',
689
+ 'timeout_seconds',
690
+ 'watch'
691
+ ]
692
+ all_params.extend(
693
+ [
694
+ 'async_req',
695
+ '_return_http_data_only',
696
+ '_preload_content',
697
+ '_request_timeout'
698
+ ]
699
+ )
700
+
701
+ for key, val in six.iteritems(local_var_params['kwargs']):
702
+ if key not in all_params:
703
+ raise ApiTypeError(
704
+ "Got an unexpected keyword argument '%s'"
705
+ " to method list_runtime_class" % key
706
+ )
707
+ local_var_params[key] = val
708
+ del local_var_params['kwargs']
709
+
710
+ collection_formats = {}
711
+
712
+ path_params = {}
713
+
714
+ query_params = []
715
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
716
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
717
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
718
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
719
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
720
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
721
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
722
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
723
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
724
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
725
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
726
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
727
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
728
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
729
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
730
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
731
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
732
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
733
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
734
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
735
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
736
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
737
+
738
+ header_params = {}
739
+
740
+ form_params = []
741
+ local_var_files = {}
742
+
743
+ body_params = None
744
+ # HTTP header `Accept`
745
+ header_params['Accept'] = self.api_client.select_header_accept(
746
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
747
+
748
+ # Authentication setting
749
+ auth_settings = ['BearerToken'] # noqa: E501
750
+
751
+ return self.api_client.call_api(
752
+ '/apis/node.k8s.io/v1/runtimeclasses', 'GET',
753
+ path_params,
754
+ query_params,
755
+ header_params,
756
+ body=body_params,
757
+ post_params=form_params,
758
+ files=local_var_files,
759
+ response_type='V1RuntimeClassList', # noqa: E501
760
+ auth_settings=auth_settings,
761
+ async_req=local_var_params.get('async_req'),
762
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
763
+ _preload_content=local_var_params.get('_preload_content', True),
764
+ _request_timeout=local_var_params.get('_request_timeout'),
765
+ collection_formats=collection_formats)
766
+
767
+ def patch_runtime_class(self, name, body, **kwargs): # noqa: E501
768
+ """patch_runtime_class # noqa: E501
769
+
770
+ partially update the specified RuntimeClass # noqa: E501
771
+ This method makes a synchronous HTTP request by default. To make an
772
+ asynchronous HTTP request, please pass async_req=True
773
+ >>> thread = api.patch_runtime_class(name, body, async_req=True)
774
+ >>> result = thread.get()
775
+
776
+ :param async_req bool: execute request asynchronously
777
+ :param str name: name of the RuntimeClass (required)
778
+ :param object body: (required)
779
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
780
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
781
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
782
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
783
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
784
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
785
+ be returned without reading/decoding response
786
+ data. Default is True.
787
+ :param _request_timeout: timeout setting for this request. If one
788
+ number provided, it will be total request
789
+ timeout. It can also be a pair (tuple) of
790
+ (connection, read) timeouts.
791
+ :return: V1RuntimeClass
792
+ If the method is called asynchronously,
793
+ returns the request thread.
794
+ """
795
+ kwargs['_return_http_data_only'] = True
796
+ return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501
797
+
798
+ def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501
799
+ """patch_runtime_class # noqa: E501
800
+
801
+ partially update the specified RuntimeClass # noqa: E501
802
+ This method makes a synchronous HTTP request by default. To make an
803
+ asynchronous HTTP request, please pass async_req=True
804
+ >>> thread = api.patch_runtime_class_with_http_info(name, body, async_req=True)
805
+ >>> result = thread.get()
806
+
807
+ :param async_req bool: execute request asynchronously
808
+ :param str name: name of the RuntimeClass (required)
809
+ :param object body: (required)
810
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
811
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
812
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
813
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
814
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
815
+ :param _return_http_data_only: response data without head status code
816
+ and headers
817
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
818
+ be returned without reading/decoding response
819
+ data. Default is True.
820
+ :param _request_timeout: timeout setting for this request. If one
821
+ number provided, it will be total request
822
+ timeout. It can also be a pair (tuple) of
823
+ (connection, read) timeouts.
824
+ :return: tuple(V1RuntimeClass, status_code(int), headers(HTTPHeaderDict))
825
+ If the method is called asynchronously,
826
+ returns the request thread.
827
+ """
828
+
829
+ local_var_params = locals()
830
+
831
+ all_params = [
832
+ 'name',
833
+ 'body',
834
+ 'pretty',
835
+ 'dry_run',
836
+ 'field_manager',
837
+ 'field_validation',
838
+ 'force'
839
+ ]
840
+ all_params.extend(
841
+ [
842
+ 'async_req',
843
+ '_return_http_data_only',
844
+ '_preload_content',
845
+ '_request_timeout'
846
+ ]
847
+ )
848
+
849
+ for key, val in six.iteritems(local_var_params['kwargs']):
850
+ if key not in all_params:
851
+ raise ApiTypeError(
852
+ "Got an unexpected keyword argument '%s'"
853
+ " to method patch_runtime_class" % key
854
+ )
855
+ local_var_params[key] = val
856
+ del local_var_params['kwargs']
857
+ # verify the required parameter 'name' is set
858
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
859
+ local_var_params['name'] is None): # noqa: E501
860
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501
861
+ # verify the required parameter 'body' is set
862
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
863
+ local_var_params['body'] is None): # noqa: E501
864
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501
865
+
866
+ collection_formats = {}
867
+
868
+ path_params = {}
869
+ if 'name' in local_var_params:
870
+ path_params['name'] = local_var_params['name'] # noqa: E501
871
+
872
+ query_params = []
873
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
874
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
875
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
876
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
877
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
878
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
879
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
880
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
881
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
882
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
883
+
884
+ header_params = {}
885
+
886
+ form_params = []
887
+ local_var_files = {}
888
+
889
+ body_params = None
890
+ if 'body' in local_var_params:
891
+ body_params = local_var_params['body']
892
+ # HTTP header `Accept`
893
+ header_params['Accept'] = self.api_client.select_header_accept(
894
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
895
+
896
+ # HTTP header `Content-Type`
897
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
898
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
899
+
900
+ # Authentication setting
901
+ auth_settings = ['BearerToken'] # noqa: E501
902
+
903
+ return self.api_client.call_api(
904
+ '/apis/node.k8s.io/v1/runtimeclasses/{name}', 'PATCH',
905
+ path_params,
906
+ query_params,
907
+ header_params,
908
+ body=body_params,
909
+ post_params=form_params,
910
+ files=local_var_files,
911
+ response_type='V1RuntimeClass', # noqa: E501
912
+ auth_settings=auth_settings,
913
+ async_req=local_var_params.get('async_req'),
914
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
915
+ _preload_content=local_var_params.get('_preload_content', True),
916
+ _request_timeout=local_var_params.get('_request_timeout'),
917
+ collection_formats=collection_formats)
918
+
919
+ def read_runtime_class(self, name, **kwargs): # noqa: E501
920
+ """read_runtime_class # noqa: E501
921
+
922
+ read the specified RuntimeClass # noqa: E501
923
+ This method makes a synchronous HTTP request by default. To make an
924
+ asynchronous HTTP request, please pass async_req=True
925
+ >>> thread = api.read_runtime_class(name, async_req=True)
926
+ >>> result = thread.get()
927
+
928
+ :param async_req bool: execute request asynchronously
929
+ :param str name: name of the RuntimeClass (required)
930
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
931
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
932
+ be returned without reading/decoding response
933
+ data. Default is True.
934
+ :param _request_timeout: timeout setting for this request. If one
935
+ number provided, it will be total request
936
+ timeout. It can also be a pair (tuple) of
937
+ (connection, read) timeouts.
938
+ :return: V1RuntimeClass
939
+ If the method is called asynchronously,
940
+ returns the request thread.
941
+ """
942
+ kwargs['_return_http_data_only'] = True
943
+ return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501
944
+
945
+ def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501
946
+ """read_runtime_class # noqa: E501
947
+
948
+ read the specified RuntimeClass # noqa: E501
949
+ This method makes a synchronous HTTP request by default. To make an
950
+ asynchronous HTTP request, please pass async_req=True
951
+ >>> thread = api.read_runtime_class_with_http_info(name, async_req=True)
952
+ >>> result = thread.get()
953
+
954
+ :param async_req bool: execute request asynchronously
955
+ :param str name: name of the RuntimeClass (required)
956
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
957
+ :param _return_http_data_only: response data without head status code
958
+ and headers
959
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
960
+ be returned without reading/decoding response
961
+ data. Default is True.
962
+ :param _request_timeout: timeout setting for this request. If one
963
+ number provided, it will be total request
964
+ timeout. It can also be a pair (tuple) of
965
+ (connection, read) timeouts.
966
+ :return: tuple(V1RuntimeClass, status_code(int), headers(HTTPHeaderDict))
967
+ If the method is called asynchronously,
968
+ returns the request thread.
969
+ """
970
+
971
+ local_var_params = locals()
972
+
973
+ all_params = [
974
+ 'name',
975
+ 'pretty'
976
+ ]
977
+ all_params.extend(
978
+ [
979
+ 'async_req',
980
+ '_return_http_data_only',
981
+ '_preload_content',
982
+ '_request_timeout'
983
+ ]
984
+ )
985
+
986
+ for key, val in six.iteritems(local_var_params['kwargs']):
987
+ if key not in all_params:
988
+ raise ApiTypeError(
989
+ "Got an unexpected keyword argument '%s'"
990
+ " to method read_runtime_class" % key
991
+ )
992
+ local_var_params[key] = val
993
+ del local_var_params['kwargs']
994
+ # verify the required parameter 'name' is set
995
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
996
+ local_var_params['name'] is None): # noqa: E501
997
+ raise ApiValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501
998
+
999
+ collection_formats = {}
1000
+
1001
+ path_params = {}
1002
+ if 'name' in local_var_params:
1003
+ path_params['name'] = local_var_params['name'] # noqa: E501
1004
+
1005
+ query_params = []
1006
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
1007
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
1008
+
1009
+ header_params = {}
1010
+
1011
+ form_params = []
1012
+ local_var_files = {}
1013
+
1014
+ body_params = None
1015
+ # HTTP header `Accept`
1016
+ header_params['Accept'] = self.api_client.select_header_accept(
1017
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
1018
+
1019
+ # Authentication setting
1020
+ auth_settings = ['BearerToken'] # noqa: E501
1021
+
1022
+ return self.api_client.call_api(
1023
+ '/apis/node.k8s.io/v1/runtimeclasses/{name}', 'GET',
1024
+ path_params,
1025
+ query_params,
1026
+ header_params,
1027
+ body=body_params,
1028
+ post_params=form_params,
1029
+ files=local_var_files,
1030
+ response_type='V1RuntimeClass', # noqa: E501
1031
+ auth_settings=auth_settings,
1032
+ async_req=local_var_params.get('async_req'),
1033
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1034
+ _preload_content=local_var_params.get('_preload_content', True),
1035
+ _request_timeout=local_var_params.get('_request_timeout'),
1036
+ collection_formats=collection_formats)
1037
+
1038
+ def replace_runtime_class(self, name, body, **kwargs): # noqa: E501
1039
+ """replace_runtime_class # noqa: E501
1040
+
1041
+ replace the specified RuntimeClass # noqa: E501
1042
+ This method makes a synchronous HTTP request by default. To make an
1043
+ asynchronous HTTP request, please pass async_req=True
1044
+ >>> thread = api.replace_runtime_class(name, body, async_req=True)
1045
+ >>> result = thread.get()
1046
+
1047
+ :param async_req bool: execute request asynchronously
1048
+ :param str name: name of the RuntimeClass (required)
1049
+ :param V1RuntimeClass body: (required)
1050
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1051
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1052
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
1053
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1054
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1055
+ be returned without reading/decoding response
1056
+ data. Default is True.
1057
+ :param _request_timeout: timeout setting for this request. If one
1058
+ number provided, it will be total request
1059
+ timeout. It can also be a pair (tuple) of
1060
+ (connection, read) timeouts.
1061
+ :return: V1RuntimeClass
1062
+ If the method is called asynchronously,
1063
+ returns the request thread.
1064
+ """
1065
+ kwargs['_return_http_data_only'] = True
1066
+ return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501
1067
+
1068
+ def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501
1069
+ """replace_runtime_class # noqa: E501
1070
+
1071
+ replace the specified RuntimeClass # noqa: E501
1072
+ This method makes a synchronous HTTP request by default. To make an
1073
+ asynchronous HTTP request, please pass async_req=True
1074
+ >>> thread = api.replace_runtime_class_with_http_info(name, body, async_req=True)
1075
+ >>> result = thread.get()
1076
+
1077
+ :param async_req bool: execute request asynchronously
1078
+ :param str name: name of the RuntimeClass (required)
1079
+ :param V1RuntimeClass body: (required)
1080
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1081
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1082
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
1083
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1084
+ :param _return_http_data_only: response data without head status code
1085
+ and headers
1086
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1087
+ be returned without reading/decoding response
1088
+ data. Default is True.
1089
+ :param _request_timeout: timeout setting for this request. If one
1090
+ number provided, it will be total request
1091
+ timeout. It can also be a pair (tuple) of
1092
+ (connection, read) timeouts.
1093
+ :return: tuple(V1RuntimeClass, status_code(int), headers(HTTPHeaderDict))
1094
+ If the method is called asynchronously,
1095
+ returns the request thread.
1096
+ """
1097
+
1098
+ local_var_params = locals()
1099
+
1100
+ all_params = [
1101
+ 'name',
1102
+ 'body',
1103
+ 'pretty',
1104
+ 'dry_run',
1105
+ 'field_manager',
1106
+ 'field_validation'
1107
+ ]
1108
+ all_params.extend(
1109
+ [
1110
+ 'async_req',
1111
+ '_return_http_data_only',
1112
+ '_preload_content',
1113
+ '_request_timeout'
1114
+ ]
1115
+ )
1116
+
1117
+ for key, val in six.iteritems(local_var_params['kwargs']):
1118
+ if key not in all_params:
1119
+ raise ApiTypeError(
1120
+ "Got an unexpected keyword argument '%s'"
1121
+ " to method replace_runtime_class" % key
1122
+ )
1123
+ local_var_params[key] = val
1124
+ del local_var_params['kwargs']
1125
+ # verify the required parameter 'name' is set
1126
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
1127
+ local_var_params['name'] is None): # noqa: E501
1128
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501
1129
+ # verify the required parameter 'body' is set
1130
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1131
+ local_var_params['body'] is None): # noqa: E501
1132
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501
1133
+
1134
+ collection_formats = {}
1135
+
1136
+ path_params = {}
1137
+ if 'name' in local_var_params:
1138
+ path_params['name'] = local_var_params['name'] # noqa: E501
1139
+
1140
+ query_params = []
1141
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
1142
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
1143
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
1144
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
1145
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
1146
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
1147
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
1148
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
1149
+
1150
+ header_params = {}
1151
+
1152
+ form_params = []
1153
+ local_var_files = {}
1154
+
1155
+ body_params = None
1156
+ if 'body' in local_var_params:
1157
+ body_params = local_var_params['body']
1158
+ # HTTP header `Accept`
1159
+ header_params['Accept'] = self.api_client.select_header_accept(
1160
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
1161
+
1162
+ # Authentication setting
1163
+ auth_settings = ['BearerToken'] # noqa: E501
1164
+
1165
+ return self.api_client.call_api(
1166
+ '/apis/node.k8s.io/v1/runtimeclasses/{name}', 'PUT',
1167
+ path_params,
1168
+ query_params,
1169
+ header_params,
1170
+ body=body_params,
1171
+ post_params=form_params,
1172
+ files=local_var_files,
1173
+ response_type='V1RuntimeClass', # noqa: E501
1174
+ auth_settings=auth_settings,
1175
+ async_req=local_var_params.get('async_req'),
1176
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1177
+ _preload_content=local_var_params.get('_preload_content', True),
1178
+ _request_timeout=local_var_params.get('_request_timeout'),
1179
+ collection_formats=collection_formats)
python/user_packages/Python313/site-packages/kubernetes/client/api/openid_api.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+
3
+ """
4
+ Kubernetes
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: release-1.35
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from kubernetes.client.api_client import ApiClient
21
+ from kubernetes.client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class OpenidApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def get_service_account_issuer_open_id_keyset(self, **kwargs): # noqa: E501
40
+ """get_service_account_issuer_open_id_keyset # noqa: E501
41
+
42
+ get service account issuer OpenID JSON Web Key Set (contains public token verification keys) # noqa: E501
43
+ This method makes a synchronous HTTP request by default. To make an
44
+ asynchronous HTTP request, please pass async_req=True
45
+ >>> thread = api.get_service_account_issuer_open_id_keyset(async_req=True)
46
+ >>> result = thread.get()
47
+
48
+ :param async_req bool: execute request asynchronously
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: str
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.get_service_account_issuer_open_id_keyset_with_http_info(**kwargs) # noqa: E501
62
+
63
+ def get_service_account_issuer_open_id_keyset_with_http_info(self, **kwargs): # noqa: E501
64
+ """get_service_account_issuer_open_id_keyset # noqa: E501
65
+
66
+ get service account issuer OpenID JSON Web Key Set (contains public token verification keys) # noqa: E501
67
+ This method makes a synchronous HTTP request by default. To make an
68
+ asynchronous HTTP request, please pass async_req=True
69
+ >>> thread = api.get_service_account_issuer_open_id_keyset_with_http_info(async_req=True)
70
+ >>> result = thread.get()
71
+
72
+ :param async_req bool: execute request asynchronously
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(str, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ ]
91
+ all_params.extend(
92
+ [
93
+ 'async_req',
94
+ '_return_http_data_only',
95
+ '_preload_content',
96
+ '_request_timeout'
97
+ ]
98
+ )
99
+
100
+ for key, val in six.iteritems(local_var_params['kwargs']):
101
+ if key not in all_params:
102
+ raise ApiTypeError(
103
+ "Got an unexpected keyword argument '%s'"
104
+ " to method get_service_account_issuer_open_id_keyset" % key
105
+ )
106
+ local_var_params[key] = val
107
+ del local_var_params['kwargs']
108
+
109
+ collection_formats = {}
110
+
111
+ path_params = {}
112
+
113
+ query_params = []
114
+
115
+ header_params = {}
116
+
117
+ form_params = []
118
+ local_var_files = {}
119
+
120
+ body_params = None
121
+ # HTTP header `Accept`
122
+ header_params['Accept'] = self.api_client.select_header_accept(
123
+ ['application/jwk-set+json']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = ['BearerToken'] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/openid/v1/jwks', 'GET',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type='str', # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=local_var_params.get('async_req'),
139
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
140
+ _preload_content=local_var_params.get('_preload_content', True),
141
+ _request_timeout=local_var_params.get('_request_timeout'),
142
+ collection_formats=collection_formats)