Skip to content

Commit a0e401e

Browse files
committed
generated API change
1 parent 8642188 commit a0e401e

File tree

676 files changed

+20876
-25779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+20876
-25779
lines changed

kubernetes/client/api/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
88
from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api
99
from kubernetes.client.api.admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api
10+
from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api
1011
from kubernetes.client.api.apiextensions_api import ApiextensionsApi
1112
from kubernetes.client.api.apiextensions_v1_api import ApiextensionsV1Api
1213
from kubernetes.client.api.apiregistration_api import ApiregistrationApi

kubernetes/client/api/admissionregistration_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/admissionregistration_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/admissionregistration_v1alpha1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/admissionregistration_v1beta1_api.py

+2,610
Large diffs are not rendered by default.

kubernetes/client/api/apiextensions_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/apiextensions_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/apiregistration_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/apiregistration_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/apis_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/apps_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/apps_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/authentication_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/authentication_v1_api.py

+135-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

@@ -36,6 +36,140 @@ def __init__(self, api_client=None):
3636
api_client = ApiClient()
3737
self.api_client = api_client
3838

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.
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.
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']) # 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+
39173
def create_token_review(self, body, **kwargs): # noqa: E501
40174
"""create_token_review # noqa: E501
41175

kubernetes/client/api/authentication_v1alpha1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/authentication_v1beta1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/authorization_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/authorization_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/autoscaling_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/autoscaling_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/autoscaling_v2_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/batch_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/batch_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/certificates_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/certificates_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/certificates_v1alpha1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/coordination_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/coordination_v1_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

kubernetes/client/api/core_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
8-
The version of the OpenAPI document: release-1.27
8+
The version of the OpenAPI document: release-1.28
99
Generated by: https://openapi-generator.tech
1010
"""
1111

0 commit comments

Comments
 (0)